CloudPortal Business Manager 2.x

 
 
 
Pankaj Paliwal
Can't access after install
Avatar

Can't access after install

I followed the steps in http://support.citrix.com/proddocs/topic/cpbm-21-map/cpbm-iag-wrapper-con.html

And it seems like the installation phase went well, but I can't get to the CloudPortal it seems like the webserver is down.

 

I also tried to restart 

 

# service cloud-portal restart 
Stopping cloud-portal:                                                 [  OK  ]
Starting cloud-portal                                                  [  OK  ]

 

 

But still I can't get to the portal.


Guy Korland MEMBERS
10 0
Pankaj Paliwal
CPBM connector coding: configuring applications
Avatar

CPBM connector coding: configuring applications

Hi,

 

I have been working on a CPBM connector that provides applications through a CPBM product bundle. A user is able to subscribe to an application and provision it; this works as expected.

 

The applications I offer through the connector can have several configuration options. At the point where a user starts a subscription, I would like to ask the user several questions. Currently this screen only asks for a name to give the application; I would like to ask many more questions (e.g. domain names, SLA option, choice of Windows/Linux...)

 

I see that the MetadataRegistry interface has several methods that return ResourceComponents, and ResourceComponents contain attributes and display attributes. I'm assuming that these what I am needing to use to create configuration entries, but I'm not certain that: (1) this is the right place, and (2) how these attributes/display attributes maps should be filled in.

 

Can anyone describe how these attributes are supposed to work, maybe point me at the right documentation for the API? And confirm that what I am wanting to do with configuration questions is possible?

 

Many thanks

 

Richard.


Richard Downer MEMBERS
3 0
Pankaj Paliwal
CPBM 2.1 : Cannot login after upgrade from 1.4
Avatar

CPBM 2.1 : Cannot login after upgrade from 1.4

After attempted login, I land on "

We're sorry, but the page you have requested is not available.

"

tcpdump on the CloudPlatform servers indicate that there is no attempt made from CPBM to contact them, the there is plenty of traffic bw CPBM and mysql servers.

 

The root login appears to be successful in the log file:

 

[2014-01-17 14:32:59.619] INFO  catalina-exec-20             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:32:59.724] INFO  catalina-exec-20             com.vmops.web.interceptors.UserContextInterceptor                 Inside UCI Call...C
[2014-01-17 14:33:19.256] INFO  catalina-exec-20             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:19.265] INFO  catalina-exec-20             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:19.600] INFO  catalina-exec-18             System.out                                                        [Fri Jan 17 14:33:19 EST 2014] [Info] CsrfGua
rd analyzing request /portal/portal/splogo
[2014-01-17 14:33:19.629] INFO  catalina-exec-18             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:33:19.817] INFO  catalina-exec-1              System.out                                                        [Fri Jan 17 14:33:19 EST 2014] [Info] CsrfGua
rd analyzing request /portal/portal/isSystemActive
[2014-01-17 14:33:19.869] INFO  catalina-exec-18             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:19.873] INFO  catalina-exec-18             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:19.875] INFO  catalina-exec-1              com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:33:19.936] INFO  catalina-exec-1              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:19.936] INFO  catalina-exec-1              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated   
[2014-01-17 14:33:30.781] INFO  catalina-exec-17             com.vmops.web.listeners.AuthenticationSuccessListener             User : root logged in successfully.
[2014-01-17 14:33:30.827] INFO  catalina-exec-17             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 6; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:33:30.837] INFO  catalina-exec-17             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 7; granting: true; sid: PrincipalSid[root]; permission: BasePermission[..............................W.=2]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:33:30.907] INFO  catalina-exec-12             System.out                                                        [Fri Jan 17 14:33:30 EST 2014] [Info] CsrfGua
rd analyzing request /portal/portal/home
[2014-01-17 14:33:30.914] INFO  catalina-exec-12             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:33:31.146] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:33:31.371] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:33:31.458] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 6; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:33:31.546] INFO  catalina-exec-12             com.vmops.reports.NewRegistrationReport                           report json data{\"series\":[{\"seriesname\":
\"Retail\",\"color\":\"9cd8e3, 86b6c0\",\"data\":[]},{\"seriesname\":\"Corporate\",\"color\":\"86b6c0, d8d373\",\"data\":[]},{\"seriesname\":\"Trial\",\"color\":\"ade29a, 9
2be83\",\"data\":[]}],\"categories\":[]}
[2014-01-17 14:33:31.569] INFO  catalina-exec-12             com.vmops.web.interceptors.UserContextInterceptor                 Inside UCI Call...C
[2014-01-17 14:33:31.613] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id
: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:01.488] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated , UserName: root
[2014-01-17 14:34:01.489] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events g
enerated , UserName: root
[2014-01-17 14:34:02.155] INFO  catalina-exec-23             System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGua
rd analyzing request /portal/portal/health/getHealthStatusForZone.json
 

[2014-01-17 14:34:02.159] INFO  catalina-exec-25             System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/support/homeListTickets
[2014-01-17 14:34:02.180] INFO  catalina-exec-12             System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/connector/service_instance_list
[2014-01-17 14:34:02.200] INFO  catalina-exec-12             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.202] WARN  catalina-exec-23             org.springframework.web.servlet.PageNotFound                      No mapping found for HTTP request with URI [/portal/portal/health/getHealthStatusForZone.json] in DispatcherServlet with name 'vmops-portal'
[2014-01-17 14:34:02.202] WARN  catalina-exec-25             org.springframework.web.servlet.PageNotFound                      No mapping found for HTTP request with URI [/portal/portal/support/homeListTickets] in DispatcherServlet with name 'vmops-portal'
[2014-01-17 14:34:02.203] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.204] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.206] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.207] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.228] INFO  catalina-exec-23             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.232] INFO  catalina-exec-25             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.563] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:02.655] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.660] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.672] INFO  catalina-exec-4              System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/home/get_home_items
[2014-01-17 14:34:02.674] INFO  catalina-exec-4              com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:03.011] INFO  catalina-exec-4              System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:03.215] INFO  catalina-exec-4              com.vmops.web.interceptors.UserContextInterceptor                 Inside UCI Call...C
[2014-01-17 14:34:03.250] INFO  catalina-exec-4              System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:05.609] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.614] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.614] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.616] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.669] INFO  catalina-exec-16             System.out                                                        [Fri Jan 17 14:34:05 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/errors/notfound
[2014-01-17 14:34:05.688] INFO  catalina-exec-16             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:05.999] INFO  catalina-exec-16             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.002] INFO  catalina-exec-16             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.744] INFO  catalina-exec-4              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.745] INFO  catalina-exec-4              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
 

 

Also scheduled jobs are failing to run it seems:

 

[2014-01-17 14:34:02.159] INFO  catalina-exec-25             System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/support/homeListTickets
[2014-01-17 14:34:02.180] INFO  catalina-exec-12             System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/connector/service_instance_list
[2014-01-17 14:34:02.200] INFO  catalina-exec-12             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.202] WARN  catalina-exec-23             org.springframework.web.servlet.PageNotFound                      No mapping found for HTTP request with URI [/portal/portal/health/getHealthStatusForZone.json] in DispatcherServlet with name 'vmops-portal'
[2014-01-17 14:34:02.202] WARN  catalina-exec-25             org.springframework.web.servlet.PageNotFound                      No mapping found for HTTP request with URI [/portal/portal/support/homeListTickets] in DispatcherServlet with name 'vmops-portal'
[2014-01-17 14:34:02.203] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.204] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.206] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.207] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.228] INFO  catalina-exec-23             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.232] INFO  catalina-exec-25             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:02.563] INFO  catalina-exec-12             System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:02.655] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.660] INFO  catalina-exec-12             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:02.672] INFO  catalina-exec-4              System.out                                                        [Fri Jan 17 14:34:02 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/home/get_home_items
[2014-01-17 14:34:02.674] INFO  catalina-exec-4              com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:03.011] INFO  catalina-exec-4              System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:03.215] INFO  catalina-exec-4              com.vmops.web.interceptors.UserContextInterceptor                 Inside UCI Call...C
[2014-01-17 14:34:03.250] INFO  catalina-exec-4              System.out                                                        GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid: PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2014-01-17 14:34:05.609] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.614] INFO  catalina-exec-23             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.614] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.616] INFO  catalina-exec-25             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated   
[2014-01-17 14:34:05.669] INFO  catalina-exec-16             System.out                                                        [Fri Jan 17 14:34:05 EST 2014] [Info] CsrfGuard analyzing request /portal/portal/errors/notfound
[2014-01-17 14:34:05.688] INFO  catalina-exec-16             com.vmops.web.interceptors.UserContextInterceptor                 Before handling the request
[2014-01-17 14:34:05.999] INFO  catalina-exec-16             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.002] INFO  catalina-exec-16             com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.744] INFO  catalina-exec-4              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
[2014-01-17 14:34:06.745] INFO  catalina-exec-4              com.vmops.web.listeners.RequestHandledListener                    Request handled: success... flushing events generated , UserName: root
 

....

 

Any ideas?


Baybars Tetik MEMBERS
6 0
Pankaj Paliwal
Add new jar throw exception:NoClassDefFoundError: org/apache/commons/httpclient/HttpException
Avatar

Add new jar throw exception:NoClassDefFoundError: org/apache/commons/httpclient/HttpException

Hi, everyone

     I have added the new  jar on the pom.xml, and maven clean install to build the project, bulid successful. But when ran on the cpbm project. It threw the following exception NoClassDefFoundError. Is there any config need to update?

 

ERROR catalina-exec-19 o.a.c.c.C.[Catalina].[localhost].[/portal].[vmops-portal] Servlet.service() for servlet [vmops-portal] in context with path [/portal] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException] with root cause java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpException
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.citrix.cpbm.custom.service.impl.CustomReportServiceImpl.generateCustomReport(CustomReportServiceImpl.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 

And I also found the system use commons-httpclient-3.1.jar, when I tested my codes in local environment, sometimes it conflicts each other. Could you tell me where is the commons-httpclient-3.1.jar config?

 

Thanks.

 

 

<dependency>
       <groupId>httpclient</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.3.1</version>
</dependency>

 


Yiqiang Xiao MEMBERS
0 0
Simon Murphy
No Notifications when using local time

Hi,

 

Has anyone seen an issue where notifications are not being displayed when using a local timezone for a given account?

 

I have observed this behavior for all accounts including root. When setting the timezone back to GMT, notifications are then displayed correctly.

 

Cheers,

Simon 


2 0
Simon Murphy
CCP API exposed via CPBM

Hi,

 

We are running CCP 4.2.1 and CPBM 2.1.1 and I am struggling to access the CCP API that Is proxied through CPBM.

 

My understanding is that I should be able to configure CloudMonkey to point to the CPBM server and I should be able to make API calls to CCP that way.

 

When I point cloudmonkey at the CCP server I am able to sync however when I point it at the CPBM server I get the following error:

 

Not Found: None
Failed to sync apis, please check your config?
Note: `sync` requires api discovery service enabled on the CloudStack management server
 

Is there a different config that is required to access the API from CPBM?

 

Cheers,

Simon

 

 


2 0
Pankaj Paliwal
$0 utility charge ??
Avatar

$0 utility charge ??

Hi

 

it is always showing $0 for Utility Charges in "Usage and Billing" for activity, subscription and invoice?

 

 

I can see usage data from my usage table and i have tried different bundle pack, but still no luck for utility charge, it is always showing $0.

 

any help would be appreciated !

 

thanks

Chris


Chris Lai MEMBERS
4 0
Pankaj Paliwal
CPBM 2.1 - BSS API - "No such user found"
Avatar

CPBM 2.1 - BSS API - "No such user found"

I believe some of you guys have met  or resolved the exception "No such user found" before. Just wish any of you could kindly help me out to review with this case:

 

1.We have a skey(root user), apikey and a CPBM server running, define the follow variables to generate parameterto get the channels list:

 

        String urlString = "/channels?_="+getTime()+"&apikey=u-i2sv--W8ItJRikn1eWK77VSmlbfwHvML-wmGyoOtaX06JoHZD3tDKWFff6tCReQhub6JRB9F25EF3qUmjk7g";           
        String sKey = "GGo4Ps7pJsMsqN87bXt1YweGqRdme8LWVBW6J5ymz261VQsl5B4-Ee_HUcTRVVzw3UYvP0hLAH64rgqQleUn9g";
        String BaseURL = "http://< CPBM server IP >/portal/api";
 

 

2.Lowercase the parameter string and encrypt and encode it :

    public static String signRequest(String parameterString, String SecretKey) {
        try {
          parameterString = parameterString.toLowerCase();
          System.out.println(parameterString);
          Mac mac = Mac.getInstance("HmacSHA1");
          SecretKeySpec keySpec = new SecretKeySpec(SecretKey.getBytes(), "HmacSHA1");
          mac.init(keySpec);
          mac.update(parameterString.getBytes());
          byte[] encryptedBytes = mac.doFinal();
          return URLEncoder.encode(Base64.encode(encryptedBytes), "UTF-8");
        } catch (Exception ex) {          
            System.out.println(ex.getStackTrace());
        }

 

 

3.Construct the final URL:

BaseURL+urlString+"&signature="+MACCoder.signRequest(urlString,sKey)

 

4.The final URL looks like:

http://< CPBM server IP >/portal/api/channels?_=1386234291515&apikey=u-i2sv--W8ItJRikn1eWK77VSmlbfwHvML-wmGyoOtaX06JoHZD3tDKWFff6tCReQhub6JRB9F25EF3qUmjk7g&signature=wpbgSlXGQjpO0MChfS5NB5T9kXA%3D
 

5.We always got the same output:

{"message":"No such user found","code":400","args":null}

 

Is there still any mistake?

 

The eDocs we have following: http://support.citrix.com/proddocs/topic/cpbm-21-map/cpbm-generatingsigntre-task.html . Also we attached the source code.

 

 

 

 

 


hanhui cai MEMBERS
8 0
Pankaj Paliwal
CPBM 2.1 with CP4.2 vm snapshot and multiple nic?
Avatar

CPBM 2.1 with CP4.2 vm snapshot and multiple nic?

Hello

 

Does anyone know that vm snapshot from CP 4.2 is supported on CPBM 2.1? Seem CPBM2.1 only support the volume snapshot and you can't take any vm snapshot?

 

For the networking function, I can't find any place to add additional nic to a instance?

 

 

regards

 

Chris

 

 

 


Chris Lai MEMBERS
0 0
Timothy Lothering
CPBM 2.1 & CCP 4.2.1 Integration Failing

Hi,

 

We are trying to integrate our CPBM 2.1 & CCP 4.2.1 platforms. We are able to "Enable" the  Citrix Cloud Platform IaaS Service, but we are unable to successfully add a service instance.

 

Configuration we are using when adding the service instance:

 

Protocol: http

Public Hostname: (Load Balanced VIP of CCP)

Public Port: 8080

 

JDBC Hostname: (IP Address of the CCP MySQL Database Server)

JDBC Username: Username

JDBC Password: Password

 

SSO Key: SSO Key obtained from CCP

API Key: API Key obtained from CCP

Secret Key: Secret Key obtained from CCP

Domain UUID: UUID of Sub Domain (CloudDomain) of ROOT

 

CloudPlatform IP List (admin port): (CCP VIP):8096

CloudPlatform IP List: (CCP VIP):8080

API Proxy Suffix: csapi

 

After selecting the Products & defining Costs, we then click on the "ADD" button, but we get a red bar in the Service Instance with the following error:

 

"Unable to connect to the service target. Please check your configuration."

 

When we investigate the CPBM-SERVER.LOG file, we see the following:

 

[2013-12-03 13:59:59.370] ERROR catalina-exec-18             com.citrix.cloudstack.client.impl.DefaultCloudServiceImpl         error while checking publicHost, publicPort and protocol 
[2013-12-03 13:59:59.401] ERROR catalina-exec-18             c.c.c.platform.admin.service.impl.ConnectorManagementServiceImpl  Exception in fetching the service Ref.. com.vmops.service.exceptions.CloudServiceException: Unable to connect to the service target. Please check your configuration.

 

We are at a loss and would appreciate any guidance in this matter.

 

Regards,


7 0
Pankaj Paliwal
CPBM 2.1 - BSS API
Avatar

CPBM 2.1 - BSS API

With regards to the BSS API in CPBM 2.1, can someone please answer the following:

1) Is access to the BSS API only through Authenticated requests, or is there a non-authenticated access (eg port 8096) available like in CloudPlatform?

2) Must every API request include a timestamp, API Key and Signature as a minimum?

3) I am following the CPBM documentation, but I have found a typo so I am not sure if it is correct.

For example I am trying to list/fetch all the accounts in CPBM via the API, so my URL looks like this:

http://<CPBM server IP>:8080/portal/api/accounts?_=1383140723&apikey=1mtfeidtu-h5wdkzfttfc68bv1do3mwft2rehathd2_tfpilzykpw1hjgckk6rp2lxhcu-xhbbvxnt--dpn36g&signature=Pfhd0jtswGSfb5rgND%252Fi8mUOcF0%253D

But I get the following message in my browser:
{"message":"Signature url timed out. Try with new Request ","code":400","args":null}

Is there something obvious wrong/missing with the URL or do you have any suggestions why I am getting the message?

4) Are there any code samples (preferably in Python) that create the required signature?

Thanks


TARIQ IQBAL MEMBERS
19 0
Pankaj Paliwal
CPBM 2.1 - Subscription exception and Emails
Avatar

CPBM 2.1 - Subscription exception and Emails

I am running CPBM 2.1 with the ACS connector connected to ACS.

When subscribing to a product bundle I always get a "Provision Resource Failed" email first then the "Subscription Notice", "Your Citrix subscription of TinyLinux Instance has been successful" and "VM Launch Notification" email notifications. So the first email - "Provision Resource Failed" is erroneous.

Meanwhile, see the attached log extract when subscribing, there are a number of ERRORs/Exceptions:

1) ERROR: JDBCExceptionReporter:Column 'resource_handle' cannot be null
2) Execution of JMS message listener failed: could not insert: [com.vmops.model.SubscriptionHandle]

Are the above issues known and are there workrounds/fixes available?

Best Regards,

Attached Files


TARIQ IQBAL MEMBERS
0 0
Pankaj Paliwal
Company logo in invoice report
Avatar

Company logo in invoice report

Hello,

I need to place the logo in the invoice pdf.

If you have any ideas or method please suggest.

Regards

Vincent s


Faustina Glory MEMBERS
6 0
Pankaj Paliwal
Invoice
Avatar

Invoice

Hello All,

Is there a way we can generate pdf files of monthly subscription (invoices) using cpbm.

I see that in the sonfiguration there is the setting but not able to actually see the interface where i can send it.

Regards

Vincent s


Faustina Glory MEMBERS
0 0
Pankaj Paliwal
CPBM 2.1 - Portal not starting up
Avatar

CPBM 2.1 - Portal not starting up

Having started the server, CPBM 2.1 is not starting up. The following log extract shows where the error starts. Any idea what is causing this?

[2013-10-24 20:02:34.244] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0005I Started bundle 'vmops.admin' version '2.1.0'.
[2013-10-24 20:02:36.533] WARN deployer-recovery org.springframework.aop.framework.Cglib2AopProxy Unable to proxy method [public final java.lang.String org.springframework.context.support.AbstractMessageSource.getMessage(java.lang.String,java.lang.Object[],java.lang.String,java.util.Locale)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
[2013-10-24 20:02:36.534] WARN deployer-recovery org.springframework.aop.framework.Cglib2AopProxy Unable to proxy method [public final java.lang.String org.springframework.context.support.AbstractMessageSource.getMessage(java.lang.String,java.lang.Object[],java.util.Locale) throws org.springframework.context.NoSuchMessageException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
[2013-10-24 20:02:36.534] WARN deployer-recovery org.springframework.aop.framework.Cglib2AopProxy Unable to proxy method [public final java.lang.String org.springframework.context.support.AbstractMessageSource.getMessage(org.springframework.context.MessageSourceResolvable,java.util.Locale) throws org.springframework.context.NoSuchMessageException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
[2013-10-24 20:02:37.038] WARN deployer-recovery org.springframework.aop.framework.Cglib2AopProxy Unable to proxy method [public final void com.vmops.event.listeners.EventListenerJmsProducer.setJmsTemplate(org.springframework.jms.core.JmsTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
[2013-10-24 20:02:37.039] WARN deployer-recovery org.springframework.aop.framework.Cglib2AopProxy Unable to proxy method [public final void com.vmops.event.listeners.EventListenerJmsProducer.setDestinationqueue(java.lang.String)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
[2013-10-24 20:02:37.562] ERROR deployer-recovery org.eclipse.virgo.kernel.core.internal.BundleStartTracker Recording application context construction failure 'org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in URL [bundleentry://139.fwk2063246672/META-INF/spring/applicationContext-scheduler.xml]: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn't retrieve trigger: Communications link failure

The last packet successfully received from the server was 26,044 milliseconds ago. The last packet sent successfully to the server was 125 milliseconds ago. [See nested exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 26,044 milliseconds ago. The last packet sent successfully to the server was 125 milliseconds ago.]' for bundle 'citrix.cpbm.custom.common_2.1.0 [139]'
[2013-10-24 20:02:37.564] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping plan 'com.citrix.cpbm.plan' version '2.1.0'.
[2013-10-24 20:02:37.566] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping configuration 'cloud' version '0.0.0'.
[2013-10-24 20:02:37.573] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0011I Stopped configuration 'cloud' version '0.0.0'.
[2013-10-24 20:02:37.575] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping bundle 'citrix.cpbm.model' version '2.1.0'.
[2013-10-24 20:02:37.579] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0011I Stopped bundle 'citrix.cpbm.model' version '2.1.0'.
[2013-10-24 20:02:37.587] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping bundle 'citrix.cpbm.service' version '2.1.0'.
[2013-10-24 20:02:37.590] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0011I Stopped bundle 'citrix.cpbm.service' version '2.1.0'.
[2013-10-24 20:02:37.600] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping bundle 'vmops.core' version '2.1.0'.
[2013-10-24 20:02:37.681] ERROR deployer-recovery org.eclipse.virgo.medic.eventlog.default AG0000E Application context creation failure for bundle 'citrix.cpbm.custom.common' version '2.1.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in URL [bundleentry://139.fwk2063246672/META-INF/spring/applicationContext-scheduler.xml]: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn't retrieve trigger: Communications link failure


TARIQ IQBAL MEMBERS
5 0
Pankaj Paliwal
CPBM 2.1 - Cloud Service Event Processing ERROR
Avatar

CPBM 2.1 - Cloud Service Event Processing ERROR

I am seeing the following error for the Cloud Service Event Processing job under Administration > Batch Jobs - what is this error related to and how do I resolve it...?

org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [com.vmops.model.ServiceInstance] with identifier [2]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.vmops.model.ServiceInstance#2] at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:672) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.convertHibernateAccessException(AbstractSessionFactoryBean.java:303) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.translateExceptionIfPossible(AbstractSessionFactoryBean.java:282) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at sun.proxy.$Proxy212.merge(Unknown Source) at com.citrix.cpbm.platform.admin.service.impl.ConnectorConfigurationManagerImpl.updateServiceInstance(ConnectorConfigurationManagerImpl.java:205) at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at sun.proxy.$Proxy248.updateServiceInstance(Unknown Source) at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at sun.proxy.$Proxy436.updateServiceInstance(Unknown Source) at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJ


TARIQ IQBAL MEMBERS
0 0
Pankaj Paliwal
CPBM 2.1 and ACS SSO
Avatar

CPBM 2.1 and ACS SSO

I have CPBM 2.1 running with the ACS Connector to ACS 4.2. What is the recommended way to enable single sign on between CPBM and ACS?

I have tried "Integrate with CloudPlatform" from the CPBM install script, this mostly works except when I try to 'View Console' for an Instance and I get the following instead of the console, followed by Session Expired!

<null cloud-stack-version="4.2.0-SNAPSHOT">
<errorcode>401</errorcode>
<errortext>
unable to verify user credentials and/or request signature
</errortext>
</null>

If I use the CCP connector to connect to the ACS 4.2 Cloud Service, I get the following message when trying to view console: "Access denied. Invalid web session or API key in request" and an internal server error:

An unhandled exception occurred on the server

Details of this error below:

Error Reference Number:
_________________________
1381361803820

Request Information:
___________________
URI: /portal/client/apis/acsccpapi/console
Source: 192.168.56.1@192.168.56.1:63315
Method: GET
Authenticated User: User Email=tariq.iqbal@shapeblue.com, firstName=Corp, lastName=One, username=corp1

Params:
______________
w : 144
vm : 9e39c345-22de-4f30-a56f-b8b49a6176e2
cmd : thumbnail
t : 1381361798422
tenant : 65d946ae-a757-4244-a61c-736aec45f63d
h : 99

Headers:
______________
host : 192.168.56.11:8080
connection : keep-alive
accept : image/webp,*/*;q=0.8
user-agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36 referer : http://192.168.56.11:8080/portal/portal/connector_resources/cloudplatform_fragment/getresources?serviceInstanceUUID=7f77cce9-5d97-4675-91bc-f8a40cabaa59&tenant=65d946ae-a757-4244-a61c-736aec45f63d
accept-encoding : gzip,deflate,sdch
accept-language : en-US,en;q=0.8
cookie : JSESSIONID=8C9D6913CBD23FAB8132CEF8EE03B989; lang=%3Cc%3Aout%20value%3D%22%24%7BpageContext.request.locale.language%7D%22%2F%3E

Cookies:
______________
JSESSIONID : 8C9D6913CBD23FAB8132CEF8EE03B989 lang : %3Cc%3Aout%20value%3D%22%24%7BpageContext.request.locale.language%7D%22%2F%3E

Error details:
______________

java.lang.NullPointerException
at com.citrix.cpbm.portal.fragment.controllers.AbstractAPIProxyController.handleRequest(AbstractAPIProxyController.java:101)
at com.citrix.cpbm.portal.fragment.controllers.AbstractAPIProxyController.request(AbstractAPIProxyController.java:48)
at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)


TARIQ IQBAL MEMBERS
1 0
Simon Murphy
CPBM 2.1 Roles and Security

Hi,

Does anyone know if there is a way to implement resource security within CPBM 2.1? What I need to do is limit access to certain resources for certain users, for example I need a development team to have access only to their VMs while the Ops team should have access to all VMs. The the security team may have read only access to everything.
As far as I can see there are poweruser and user roles, but no way to apply security to individual resources.

The project functionality in CCP seems to address these issues but this does not seem to be exposed in CPBM.
How are others implementing security in CPBM?
Cheers, Simon


1 0
Pankaj Paliwal
CPBM 2.1- LiquiBase errors and NullPointerException on startup
Avatar

CPBM 2.1- LiquiBase errors and NullPointerException on startup

On CPBM 2.1 startup I am seeing a number of liquibase errors and also got a NullPointerException (see attached log for both errors).

Attached Files

  • Attached File  Err.txt   65.5K   0 downloads

TARIQ IQBAL MEMBERS
2 0
Pankaj Paliwal
integrating CPBM with CP
Avatar

integrating CPBM with CP

Greetings CPBM team !
Thanks , CPBM is a great tool and works out of the box very well with great features,

my question is
1. i have a very large cloud platform implementation > 1000 vms which have been running for 8 months.
2. i just configured CPBM , can i enroll all the pre-existing users into CPBM .. or do i have to create all the users again through CPBM.
3. how do I start billing already existing VMs...
i know its easy to create aN account in cpbm , subscribe to the bundle and start spinning vms .. billing will work for these vms created from cpbm .. but how about already existing vms in cloudstack how to do i generate reports for those vms.


Prashant Sreedharan MEMBERS
2 0
Pankaj Paliwal
CPBM 2.1 - Active Subscriptions Incorrect
Avatar

CPBM 2.1 - Active Subscriptions Incorrect

In CPBM 2.1 with ACS connector, as a user when I tried to Subscribe to a VM I received an email/message saying there was a provisioning error and the VM was not provisioned. Checking ACS, showed the VM under instances but with a State=ERROR. The VM was then deleted in ACS. However, the Active Subscriptions widget on the dashboard is still showing the VM as an active subscription (4 days later) even though it no longer exists.

I have attached the log from when the VM failed to provision.

How do I get the Active Subscriptions widget to reflect the correct number of VMs running in the account?

Attached Files


TARIQ IQBAL MEMBERS
4 0
Pankaj Paliwal
CPBM 2.1 - Remote Transfer Error
Avatar

CPBM 2.1 - Remote Transfer Error

Is there anyway in CPBM 2.1 to disable the SFTP remote transfer?

By default is causes the following ERROR/FileSystemException in the cpbm-server.log:

[2013-09-30 04:00:02.909] ERROR chedulerFactoryBean_Worker-4 com.vmops.utils.transfer.RemoteTransfer FileSystemException org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://root:root1234@localhost/".
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
at com.vmops.utils.transfer.RemoteTransfer.exportSftpFile(RemoteTransfer.java:68)
at com.vmops.utils.transfer.RemoteTransfer.exportFile(RemoteTransfer.java:40)
at com.citrix.cpbm.billing.export.stream.service.impl.StreamExportServiceImpl.exportBatchFile(StreamExportServiceImpl.java:169)
at com.citrix.cpbm.billing.export.stream.service.impl.StreamExportServiceImpl.process(StreamExportServiceImpl.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at sun.proxy.$Proxy509.process(Unknown Source)
at com.vmops.admin.jobs.BillingExportJob.run(BillingExportJob.java:118)
at com.vmops.admin.jobs.AbstractPortalJob.execute(AbstractPortalJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "localhost".
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:214)
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
... 30 common frames omitted
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:452)
at com.jcraft.jsch.Session.connect(Session.java:150)
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
... 31 common frames omitted


TARIQ IQBAL MEMBERS
3 0
Pankaj Paliwal
CPBM 2.1 CCP 4.2 integration failing
Avatar

CPBM 2.1 CCP 4.2 integration failing

Hello,

I have integrated CBPBM 2.1 and CPP 4.2 following this guide: http://support.citrix.com/proddocs/topic/cpbm-21-map/ccpb-ccp-conn-wrapper-con.html. After the integration I was able to create product and product bundles, but when I'm trying to enable the CPP 4.2 service for the first retail customer, I get error "Error while enabling the Service".

Any hints what could be causing the problem?


Mika Övermark MEMBERS
1 0
Pankaj Paliwal
CPBM 2.1 - Usage/Billing job failing - Could not get JDBC Connection
Avatar

CPBM 2.1 - Usage/Billing job failing - Could not get JDBC Connection

In CPBM 2.1 the Usage/Billing job is failing and appears to be because CPBM "Could not get JDBC Connection".
The cpbm-server.log shows the following:

[2013-09-28 01:00:29.822] ERROR chedulerFactoryBean_Worker-2 com.vmops.billing.job.service.impl.UsageBatchProcessImpl Error in Collection Service for instance 0f5537dd-fbd2-4eea-bba8-ca9172c96322
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

[2013-09-28 01:00:29.836] ERROR chedulerFactoryBean_Worker-2 com.vmops.admin.jobs.DailyBillingJob #### Exception in daily usage processing for instance : 0f5537dd-fbd2-4eea-bba8-ca9172c96322 com.vmops.service.exceptions.UsageException: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:572)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:661)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:701)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:166)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:172)
at com.citrix.cloudstack.service.impl.UsageCollectorImpl.collectUsages(UsageCollectorImpl.java:125)
at com.citrix.cloudstack.service.impl.UsageCollectorImpl.collect(UsageCollectorImpl.java:84)
at com.vmops.billing.job.service.impl.UsageBatchProcessImpl.processUsageBatch(UsageBatchProcessImpl.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at sun.proxy.$Proxy325.processUsageBatch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at sun.proxy.$Proxy487.processUsageBatch(Unknown Source)
at com.vmops.admin.jobs.DailyBillingJob.run(DailyBillingJob.java:166)
at com.vmops.admin.jobs.AbstractPortalJob.execute(AbstractPortalJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
... 42 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
... 45 more

[2013-09-28 01:00:29.841] INFO chedulerFactoryBean_Worker-2 com.vmops.admin.jobs.DailyBillingJob #### Finished daily usage processing. Moving on to billing related processing


TARIQ IQBAL MEMBERS
2 0
Pankaj Paliwal
CPBM 2.1 - Active Subscriptions
Avatar

CPBM 2.1 - Active Subscriptions

In CPBM 2.1 on the dashboard screen what does the Active Subscriptions value represent?

I have CPBM 2.1 configured with the ACS connector, when a user purchases a VM, under the "Manage Services > "Manage Resources" the ACS dashboard in CPBM shows Running VMs=1, Total VMs=1. However, the CPBM dashboard shows Active Subscriptions=0.

If I then login to CPBM as ROOT the dashboard also shows Active Subscriptions=0.

Should the Active Subscriptions show 1 ?

Is this a bug or does something need to be configured somewhere?

Thanks


TARIQ IQBAL MEMBERS
3 0
Pankaj Paliwal
CPBM 2.1 - SQL Exception
Avatar

CPBM 2.1 - SQL Exception

Hi,

I am using CPBM 2.1 with the ACS Connector. The Portal DB user is configured as “cpbm”. When I click on ‘My Services’ I get the following SQL Exception in the cpbm-server.log…it appears to be using the “cloud” user, which does not exist in the DB.

1. Where is this "cloud" user configured?
2. What resource is it trying to acquire?

[2013-09-26 09:40:29.885] WARN chronousRunner$PoolThread-#1 com.mchange.v2.resourcepool.BasicResourcePool com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7b64b287 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: java.sql.SQLException: Access denied for user 'cloud'@'192.168.56.11' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4120)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:925)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1704)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1250)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2465)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2498)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:822)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor117.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:404)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:317)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


TARIQ IQBAL MEMBERS
3 0
Pankaj Paliwal
CPBM 2.1 upgrade path
Avatar

CPBM 2.1 upgrade path

What's the upgrade path for CPBM 2.1?


Somesh Naidu CITRIX EMPLOYEES
3 0
Pankaj Paliwal
Where can I download Cloud Portal Business Managers 2.1?
Avatar

Where can I download Cloud Portal Business Managers 2.1?

Hi.
Where can I download Cloud Portal Business Managers 2.1?

Edited by: zslanic112 on 17.9.2013 15:57


Zdeno Slanicky MEMBERS
2 0
Kurt Bachelder
No Email for VM Creation (VM_CREATION Content Template not working)

Hey all -

Just wondering if this is a known issue. When provisioning a VM in CPBM 2.0, we're not getting an email with the password when the template is provisioned. Email seems to be working fine for just about everything else (new account activation, task notification, etc.) - just not for the newly provisioned Templates (both regular and password-enabled).

I see that there is a Content Template named "VM Creation" (VM_CREATION) that appears to have what we're looking for, and I'm not seeing any errors in the logs to indicate a specific problem with this Content Template, but... no email.

Anyone else having this issue?

K


1 0
Pankaj Paliwal
Can't see logon page after install
Avatar

Can't see logon page after install

Hi,

We did a standard installation of CPBM 2.0 in an AWS VPC environment. It runs on a RHEL 6.4 VM and it uses an RDS mysql instance.

Cloud-portal service starts, but login page does not appear.
Could you please help us solve this issue?

Please find attached /usr/share/vts3/repository/prop/cloud.properties* and */usr/share/vts3/serviceability/logs/virgo-server/log.log files.

Any help would be highly appreciated.
Thanks,
Corneliu

Attached Files


Corneliu Popescu MEMBERS
1 0
 

Top Contributors