Dec. 22, 2015
How do I set the binary logs configuration and save disk space?
The binary log files are stored in /var/lib/mysql. Binary log is used for recovering data and replication.
Disabling MySQL binlogging
1. Open my.cnf using the following command: # vi /etc/my.cnf
2. Find the following lines and remove or comment it.
#log_bin = /var/log/mysql/mysql-bin.log
#expire_logs_days = 10
#max_binlog_size = 100M
3. Save and close the file.
4. Restart mysql server using the following command: # service mysql restart
Note: Disabling MySQl binlogging is not recommended if you are replicating.
Purging Master Logs
If you are replicating, then you need to periodically reset master or purge master logs to clear out the old logs as they are necessary for replication. mysql-bin.index stores a list of all binary logs which mysqld generates and auto-rotates. To clear the binlogs in conjunction with mysql-bin.index:
1. Purge the master logs using the following commands.
PURGE BINARY LOGS TO 'binlogname';
PURGE BINARY LOGS BEFORE 'datetimestamp';
PURGE BINARY LOGS TO 'mysql-bin.000123';
This will erase all binary logs before 'mysql-bin.000123'.
PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 5 DAY) + INTERVAL 0 SECOND;
This will erase all binary logs before midnight 5 days ago.
2. To delete binlog automatically and store five days’ log, set the following:
mysql> SET GLOBAL expire_logs_days = 5;
3. Add this to /etc/my.cnf file.
How to setup redundant CPBM management server?
Both instances will need to be behind a load balancer and a few settings need to be modified in cloud.properties:
vmops.jms.url=tcp://x.x.x.x:9125(by default this is set to tcp://localhost:9125, you must change it to the IP of the server)
vmops.jms.client.url=failover:(tcp://server1:9125,tcp://server2:9125)(you must add, in the same order on each server, the list of CPBM server(s) that are part of the installation: server1 and server2 can be either FQDNs or IP addresses)
vmops.mgmt.server.publicHost=xxx(this is the FQDN/IP on which the load balancer listens for incoming requests)
vmops.mgmt.server.publicPort=xxx(this is the port on which the load balancer listens for incoming requests)
vmops.mgmt.server.publicProtocol=http/https(this is the protocol on which the load balancer listens for incoming requests)
What functionality breaks if /client is not on the same FQDN as /portal?
If there is a different FQDN for CPBM and CCP, you will run into problems. For example, you are using cpbm.company.com for CPBM and ccp.company.com for CCP. Admin logs into the portal at https://cpbm.company.com/portal. After clicking the Launch Cloud Console button, user is directed to https://ccp.company.com/client. However, CCP will now try to make AJAX calls through the CPBM API proxy which it assumes is at https://ccp.company.com/portal/client. This will fail because /portal is not a valid location on the CCP server.
Which is the location to see the log for a Payment Gateway Charges failure?
The errors can be seen in regular logs such as catalina.out as well as specifically in BillingActivity.log which is present in the same directory as catalina.out . So for your reference you should be able to see it in /tmp/BillingActivity.log.
How to change the Service Provider logo in CPBM?
What is CAS? Why does CPBM need it?
For more information, visit http://www.jasig.org/cas
What is CAS technically: CAS is an Enterprise Java solution to web application authentication that also provides the benefit of SSO. Technically, SSO can be achieved because the authentication can be removed from the web application and handled centrally. And, when this authentication is handled by a single service, access to many services can be granted once and "remembered" for the life of the web session or even longer though not recommended. Also remember that the SSO feature does not have to be employed and yet CAS authentication still provides a quality authentication mechanism. CAS is a collaborative effort that has produced a very solid central authentication service using the Java development platform. CAS also provides a broad selection of clients for use with all of the enterprise and scripted web technologies. For more information, visit https://wiki.jasig.org/display/CASUM/Technical+Overview
Why does CPBM need CAS: CPBM supports the use of CAS for SSO, which enables access to multiple password protected systems after logging in just once.
What languages does CPBM support out-of-the-box (OOB)?
How to change default channel?
The existing account will point to the old channel. You do not have to restart the server for reflecting the changes.
How to configure CPBM to access internet via proxy address?
$JAVA_OPTS -Dhttp.proxyHost=<IP Address of Proxy Host> -Dhttp.proxyPort=8080 -Xbootclasspath/p:$KERNEL_HOME/endorsed/com.springsource.javax.mail-1.4.0.jar
How to update timezone in CPBM server?
$JAVA_OPTS -Duser.timezone=<Update you timezone ID here> -Xbootclasspath/p:$KERNEL_HOME/endorsed/com.springsource.javax.mail-1.4.0.jar
The Tomcat Server from a CPBM host is configured to use a fixed value of 1024MB of RAM. Can I increase the assigned memory, if there is a lot of RAM available?
Yes. You can increase the -Xmx to half of the available RAM.
The values you see in the JVM options are default values and is the minimum requirement for the CPBM to run for POC or demo purposes. In production environment higher configurations are recommended.
What is the difference between "Scale up VM" and "Change Service" options?
How to setup ActiveMQ accurately in a multinode setup?
# JDBC URL for the MQ database vmops.mq.jdbc.url=jdbc:mysql://localhost/cloud_portalmq?relaxAutoCommit=true vmops.mq.jdbc.username=cloud vmops.mq.jdbc.password=cloud mq.jdbc.database.schemaname=cloud_portalmqWhen the ActiveMQ broker gets started it is available at the following configuration:
# URL to start the message broker at vmops.jms.url=tcp://localhost:9125
vmops.jms.client.url=failover:(tcp://cpbmhost1:9125,tcp://cpbmhost2:9125)This configuration provides all of the broker URLs in the cluster. The listener tries to connect to the broker in the 'failsafe' mode, which means that it tries to connect to first broker and if it is not successful then tries to connect to the second broker.
In a multinode setup, the node that comes up first gets the lock on the cloud_portalmq database and becomes the master broker. The other nodes become slave and keep trying to acquire the lock. If the master broker goes down, one of the slave, which gets the lock on cloud_portalmq first, becomes the master broker. JMS listener on all the nodes starts listening to the master broker. When the master broker is down the listener tries to listen to next broker provided in config vmops.jms.client.url
Why does CloudPortal Business Manager service take too long to start?
From all the CPBM nodes in a cluster only one node has the ActiveMQ broker running on port 9125. The other nodes keep waiting and can start the ActiveMQ broker only when the first node goes down. So, at any given moment of time only one node has the ActiveMQ broker running on port 9125 and all the other nodes push their messages to this broker.
When does an account get suspended/restricted?
How to reset the locked Root user account?
UPDATE cloud_portal.users SET failed_login_attempts = 0, enabled = 1, locked = 0 WHERE id = 1;
How to reset CPBM root password when it is not the default?
update cloud_portal.users set salt='1300869425505AbRaCaDaBrA1943660404',password='b8bdee346e8d4eb0f02201e8751d24a324c89100'whereusername='root';
Can there be bundles that include products from multiple cloud services?
A bundle can be used to provision only one resource. So you cannot have a bundle with multiple resources from across services. However, you can entitle (that is give away as part of) products from other services as part of a bundle. For example, you can create a VM bundle and include a few mailboxes.
How does "This product is replacing one or more products" work?
When selected, this product will not be available in a catalog until the catalog is synced and a new version is activated after that. This is done in conjunction with retiring one or more products as being replaced. This is required because in scenarios where a set of products are replaced by another set, the combined changes have to be automatically visible to the catalog/end customer.
What is the "Sync with Reference Catalog" feature?
The feature syncs the channel catalog with the current plan of the reference catalog. Charges are copied for the new products that come into being. Any new bundles created can be consumed in the channel catalog. Also, retired products are marked as retired in the channel catalog. Since syncing is a modification to the channel catalog plan, the changes will take effect only in the next plan of the channel catalog.
How to remove bundles in CPBM?
The service provider user with "Product create manage" role can unpublish the product bundle under the "Catalog" tab. Unpublishing makes the specific bundle unavailable to the user.
Why a service for a user cannot be enabled?
As a Product Manager, how to preview the catalog before activating the channel?
How to modify prices for bundles and products?
How to upload product/bundle images?
How to enable initial deposit for a account?
When does the usage price show zero for a product?
How to cancel a credit that is issued?
How to improve the overall performance of the CPBM UI pages?