Re: cloudstack-management start failed (CloudStack 4.6.1 + CentOS7)
Good morning, On centos7 try running this: cloudstack-setup-management --tomcat7 When i try that, it works fine for me. This is due to tomcat 6/7 change. Regards, Remi Sent from my iPhone > On 06 Dec 2015, at 02:33, giraffeg forestgwrote: > > Hi all. > > My environment: > > CloudStack 4.6.1 , CentOS7 > http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/ > > > Steps to reproduce: > > 1)clean install CloudStack 4.6.1 on CentOS7 > > use http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/ > > [root@acs ~]# cat /etc/redhat-release > CentOS Linux release 7.1.1503 (Core) > [root@acs ~]# > [root@acs ~]# rpm -qa | grep cloudstack > cloudstack-management-4.6.1-shapeblue0.el7.centos.x86_64 > cloudstack-common-4.6.1-shapeblue0.el7.centos.x86_64 > [root@acs ~]# > > 2)cloudstack-setup-databases...(snip) > > 3)cloudstack-setup-management (Failed) > > [root@acs ~]# cloudstack-setup-management > Starting to configure CloudStack Management Server: > Configure Firewall ... [OK] > Configure CloudStack Management Server ...[Failed] > Cannot find /etc/cloudstack/management/server-nonssl.xml or > /etc/cloudstack/management/tomcat6-nonssl.conf, https enable failed > Try to restore your system: > Restore Firewall ... [OK] > Restore CloudStack Management Server ...[OK] > [root@acs ~]# > > 4)check log (/var/log/messages) > > Dec 6 10:08:51 acs server: WARNING: Unable to load server configuration > from [/usr/share/cloudstack-management/conf/server.xml] > > 5)check service status (failed) > > [root@acs ~]# systemctl status cloudstack-management.service > cloudstack-management.service - CloudStack Management Server > Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; > enabled) > Active: failed (Result: exit-code) since Sun 2015-12-06 10:08:52 JST; 11s > ago > Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited, > status=1/FAILURE) > Process: 3026 ExecStart=/usr/libexec/tomcat/server start (code=exited, > status=0/SUCCESS) > Main PID: 3026 (code=exited, status=0/SUCCESS) > > Dec 06 10:08:52 acs.dom.local server[3061]: at > java.io.FileInputStream.(FileInputStream.java:146) > Dec 06 10:08:52 acs.dom.local server[3061]: at > org.apache.catalina.startup.Catalina.stopServer(Catalina.java:466) > Dec 06 10:08:52 acs.dom.local server[3061]: at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > Dec 06 10:08:52 acs.dom.local server[3061]: at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > Dec 06 10:08:52 acs.dom.local server[3061]: at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI...va:43) > Dec 06 10:08:52 acs.dom.local server[3061]: at > java.lang.reflect.Method.invoke(Method.java:606) > Dec 06 10:08:52 acs.dom.local server[3061]: at > org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370) > Dec 06 10:08:52 acs.dom.local server[3061]: at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457) > Dec 06 10:08:52 acs.dom.local systemd[1]: cloudstack-management.service: > control process exited, code=exited status=1 > Dec 06 10:08:52 acs.dom.local systemd[1]: Unit > cloudstack-management.service entered failed state. > Hint: Some lines were ellipsized, use -l to show in full. > [root@acs ~]# > > workaround: > The correct do not know whether or not , but it worked. > > 6)check file > > [root@acs ~]# ls -la /etc/cloudstack/management > total 132 > drwxr-xr-x. 3 root root 4096 Dec 5 17:59 . > drwxr-xr-x. 3 root root 4096 Dec 5 17:53 .. > drwxrwx---. 3 root cloud 4096 Dec 5 17:53 Catalina > rw-rr-. 1 root root 8945 Dec 1 20:22 catalina.policy > rw-rr-. 1 root root 3794 Dec 1 20:22 catalina.properties > rw-rr-. 1 root root 1653 Dec 1 20:22 classpath.conf > rw-rr-. 1 root root 1357 Dec 1 20:22 commons-logging.properties > rw-r. 1 root cloud 3137 Dec 5 17:59 db.properties > rw-rr-. 1 root root 979 Dec 1 20:22 environment.properties > rw-rr-. 1 root root 927 Dec 1 20:22 java.security.ciphers > rw-rr-. 1 root root 8 Dec 5 17:55 key > rw-rr-. 1 root root 7020 Dec 1 20:22 log4j-cloud.xml > rw-rr-. 1 root root 6722 Dec 1 20:22 server7-nonssl.xml > rw-rr-. 1 root root 7251 Dec 1 20:22 server7-ssl.xml > rw-rr-. 1 root root 1383 Dec 1 20:22 tomcat-users.xml > rw-rr-. 1 root root 50475 Dec 1 20:22 web.xml > [root@acs ~] > > 7)copy file > > [root@acs ~]# cd /etc/cloudstack/management > [root@acs management]# cp -p server7-nonssl.xml server.xml > > 8)start cloudstack-management service > > [root@acs ~]# systemctl start cloudstack-management.service > > 9)check service status (running) > > [root@acs ~]# systemctl status cloudstack-management.service > cloudstack-management.service - CloudStack Management Server > Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; > enabled) > Active: active (running) since Sun 2015-12-06 10:12:23 JST; 1min 0s ago > Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited, >
Re: CloudStack fails to deploy SSVM
Hi Somesh, this was definitively a step in the right direction. I added the local storage of the ESX hosts. In the GUI I could only chose between cluster wide and zone wide storage. So, I hacked the DB and changed the type to HOST. After that the system VMs came up. I was now able to upload an ISO image but I was not yet able to deploy a VM. I tried with a disk offering for local storage and a disk offering for shareed storage but both fail with missing resources. I'll collect the info and post them here. Thank you very much for your help Bernhard 2015-12-05 0:25 GMT+01:00 Somesh Naidu: > Look at the column "use_local_storage" being set to 1 meaning the system > service offering requires local storage. That should be because the global > config "system.vm.use.local.storage" in your environment is set to true. > > I am not sure if 4.3.x has the capability to set the above config per Zone > so you may have to use local storage for system VMs in the new Zone (ID 4) > as well. > > Somesh > CloudPlatform Escalations > Citrix Systems, Inc. > > -Original Message- > From: Bernhard Dübi [mailto:1linuxengin...@gmail.com] > Sent: Friday, December 04, 2015 1:25 AM > To: users@cloudstack.apache.org > Subject: Re: CloudStack fails to deploy SSVM > > Hi Somesh, > > thank you for looking into this > > > mysql> select * from disk_offering where id=9; > > ++---+--+--+--+---+-+--+-+---++++-+-+--+--+-+--+--+-+--++-++---+ > | id | domain_id | name | > uuid | display_text | disk_size | type| > tags | recreatable | use_local_storage | unique_name| > system_use | customized | removed | created | sort_key | > display_offering | customized_iops | min_iops | max_iops | bytes_read_rate > | bytes_write_rate | iops_read_rate | iops_write_rate | state | > hv_ss_reserve | > > ++---+--+--+--+---+-+--+-+---++++-+-+--+--+-+--+--+-+--++-++---+ > | 9 | NULL | System Offering For Secondary Storage VM | > e216d1da-f106-4db5-b9ea-72c6942d5d66 | NULL | 0 | Service | > NULL | 1 | 1 | Cloud.com-SecondaryStorage > | 1 | 1 | NULL| 2013-12-20 15:25:16 |0 > |1 |NULL | NULL | NULL | > NULL | NULL | NULL |NULL | Active > | NULL | > > ++---+--+--+--+---+-+--+-+---++++-+-+--+--+-+--+--+-+--++-++---+ > 1 row in set (0.00 sec) > > mysql> select * from storage_pool where data_center_id = 4; > > +-+--+--+---+--++++---++--+---+--+-+-+-++---+-++-+---+ > | id | name | uuid | > pool_type | port | data_center_id | pod_id | cluster_id | > used_bytes| capacity_bytes | host_address | user_info | > path | created | removed | update_time | status | > storage_provider_name | scope | hypervisor | managed | capacity_iops | > > +-+--+--+---+--++++---++--+---+--+-+-+-++---+-++-+---+ > | 173 | VMware_Primary01 | 8ed580cb-bed8-3de4-b2d6-ffd60d30b6a3 | > NetworkFilesystem | 2049 | 4 | 6 | 16 | > 1525553401856 | 2198886936576 | zcgnfsesx001.fpprod.corp | NULL | > /cloud01 | 2015-12-02 11:25:25 | NULL| NULL| Up
Default route is not configured on Redundant VPC VR (tier2)
Hi all. My environment: CloudStack 4.6.1 , CentOS7 http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/ Hypervisor CentOS7 , KVM SystemVM http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2 Steps to reproduce: 1)Create VPC (Redundant VPC offering) 2)Create tier1 & tier2 3)Create VM Instance on tier1 & tier2 4)Check VPC VR IP Address (no problem) root@r-9-VM:~# ip a 1: lo:mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 0e:00:a9:fe:00:9a brd ff:ff:ff:ff:ff:ff inet 169.254.0.154/16 brd 169.254.255.255 scope global eth0 3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 06:ac:80:00:00:21 brd ff:ff:ff:ff:ff:ff inet 10.0.1.102/24 brd 10.0.1.255 scope global eth1 inet 10.0.1.103/24 brd 10.0.1.255 scope global secondary eth1 4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:7f:b8:00:05 brd ff:ff:ff:ff:ff:ff inet 172.16.0.67/24 brd 172.16.0.255 scope global eth2 inet 172.16.0.1/24 brd 172.16.0.255 scope global secondary eth2 5: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:03:56:00:04 brd ff:ff:ff:ff:ff:ff inet 172.16.1.25/24 brd 172.16.1.255 scope global eth3 inet 172.16.1.1/24 brd 172.16.1.255 scope global secondary eth3 root@r-9-VM:~# root@r-10-VM:~# ip a 1: lo: mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 0e:00:a9:fe:00:49 brd ff:ff:ff:ff:ff:ff inet 169.254.0.73/16 brd 169.254.255.255 scope global eth0 3: eth1: mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 06:ac:80:00:00:21 brd ff:ff:ff:ff:ff:ff inet 10.0.1.102/24 brd 10.0.1.255 scope global eth1 inet 10.0.1.103/24 brd 10.0.1.255 scope global secondary eth1 4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:19:11:00:06 brd ff:ff:ff:ff:ff:ff inet 172.16.0.233/24 brd 172.16.0.255 scope global eth2 5: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:20:19:00:05 brd ff:ff:ff:ff:ff:ff inet 172.16.1.231/24 brd 172.16.1.255 scope global eth3 root@r-10-VM:~# 5)Reboot VPC VR r-9-VM 6)Check VPC VR IP Address (no problem) root@r-9-VM:~# ip a 1: lo: mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 0e:00:a9:fe:01:28 brd ff:ff:ff:ff:ff:ff inet 169.254.1.40/16 brd 169.254.255.255 scope global eth0 3: eth1: mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 06:ac:80:00:00:21 brd ff:ff:ff:ff:ff:ff inet 10.0.1.103/24 brd 10.0.1.255 scope global eth1 inet 10.0.1.102/24 brd 10.0.1.255 scope global secondary eth1 4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:7f:b8:00:05 brd ff:ff:ff:ff:ff:ff inet 172.16.0.67/24 brd 172.16.0.255 scope global eth2 5: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:03:56:00:04 brd ff:ff:ff:ff:ff:ff inet 172.16.1.25/24 brd 172.16.1.255 scope global eth3 root@r-9-VM:~# root@r-10-VM:~# ip a 1: lo: mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 0e:00:a9:fe:00:49 brd ff:ff:ff:ff:ff:ff inet 169.254.0.73/16 brd 169.254.255.255 scope global eth0 3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 06:ac:80:00:00:21 brd ff:ff:ff:ff:ff:ff inet 10.0.1.102/24 brd 10.0.1.255 scope global eth1 inet 10.0.1.103/24 brd 10.0.1.255 scope global secondary eth1 4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:19:11:00:06 brd ff:ff:ff:ff:ff:ff inet 172.16.0.233/24 brd 172.16.0.255 scope global eth2 inet 172.16.0.1/24 brd 172.16.0.255 scope global secondary eth2 5: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 02:00:20:19:00:05 brd ff:ff:ff:ff:ff:ff inet 172.16.1.231/24 brd 172.16.1.255 scope global eth3 inet 172.16.1.1/24 brd 172.16.1.255 scope global secondary eth3 root@r-10-VM:~#
cloudstack-management start failed (CloudStack 4.6.1 + CentOS7)
Hi all. My environment: CloudStack 4.6.1 , CentOS7 http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/ Steps to reproduce: 1)clean install CloudStack 4.6.1 on CentOS7 use http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/ [root@acs ~]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) [root@acs ~]# [root@acs ~]# rpm -qa | grep cloudstack cloudstack-management-4.6.1-shapeblue0.el7.centos.x86_64 cloudstack-common-4.6.1-shapeblue0.el7.centos.x86_64 [root@acs ~]# 2)cloudstack-setup-databases...(snip) 3)cloudstack-setup-management (Failed) [root@acs ~]# cloudstack-setup-management Starting to configure CloudStack Management Server: Configure Firewall ... [OK] Configure CloudStack Management Server ...[Failed] Cannot find /etc/cloudstack/management/server-nonssl.xml or /etc/cloudstack/management/tomcat6-nonssl.conf, https enable failed Try to restore your system: Restore Firewall ... [OK] Restore CloudStack Management Server ...[OK] [root@acs ~]# 4)check log (/var/log/messages) Dec 6 10:08:51 acs server: WARNING: Unable to load server configuration from [/usr/share/cloudstack-management/conf/server.xml] 5)check service status (failed) [root@acs ~]# systemctl status cloudstack-management.service cloudstack-management.service - CloudStack Management Server Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; enabled) Active: failed (Result: exit-code) since Sun 2015-12-06 10:08:52 JST; 11s ago Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited, status=1/FAILURE) Process: 3026 ExecStart=/usr/libexec/tomcat/server start (code=exited, status=0/SUCCESS) Main PID: 3026 (code=exited, status=0/SUCCESS) Dec 06 10:08:52 acs.dom.local server[3061]: at java.io.FileInputStream.(FileInputStream.java:146) Dec 06 10:08:52 acs.dom.local server[3061]: at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:466) Dec 06 10:08:52 acs.dom.local server[3061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Dec 06 10:08:52 acs.dom.local server[3061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) Dec 06 10:08:52 acs.dom.local server[3061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI...va:43) Dec 06 10:08:52 acs.dom.local server[3061]: at java.lang.reflect.Method.invoke(Method.java:606) Dec 06 10:08:52 acs.dom.local server[3061]: at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370) Dec 06 10:08:52 acs.dom.local server[3061]: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457) Dec 06 10:08:52 acs.dom.local systemd[1]: cloudstack-management.service: control process exited, code=exited status=1 Dec 06 10:08:52 acs.dom.local systemd[1]: Unit cloudstack-management.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full. [root@acs ~]# workaround: The correct do not know whether or not , but it worked. 6)check file [root@acs ~]# ls -la /etc/cloudstack/management total 132 drwxr-xr-x. 3 root root 4096 Dec 5 17:59 . drwxr-xr-x. 3 root root 4096 Dec 5 17:53 .. drwxrwx---. 3 root cloud 4096 Dec 5 17:53 Catalina rw-rr-. 1 root root 8945 Dec 1 20:22 catalina.policy rw-rr-. 1 root root 3794 Dec 1 20:22 catalina.properties rw-rr-. 1 root root 1653 Dec 1 20:22 classpath.conf rw-rr-. 1 root root 1357 Dec 1 20:22 commons-logging.properties rw-r. 1 root cloud 3137 Dec 5 17:59 db.properties rw-rr-. 1 root root 979 Dec 1 20:22 environment.properties rw-rr-. 1 root root 927 Dec 1 20:22 java.security.ciphers rw-rr-. 1 root root 8 Dec 5 17:55 key rw-rr-. 1 root root 7020 Dec 1 20:22 log4j-cloud.xml rw-rr-. 1 root root 6722 Dec 1 20:22 server7-nonssl.xml rw-rr-. 1 root root 7251 Dec 1 20:22 server7-ssl.xml rw-rr-. 1 root root 1383 Dec 1 20:22 tomcat-users.xml rw-rr-. 1 root root 50475 Dec 1 20:22 web.xml [root@acs ~] 7)copy file [root@acs ~]# cd /etc/cloudstack/management [root@acs management]# cp -p server7-nonssl.xml server.xml 8)start cloudstack-management service [root@acs ~]# systemctl start cloudstack-management.service 9)check service status (running) [root@acs ~]# systemctl status cloudstack-management.service cloudstack-management.service - CloudStack Management Server Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; enabled) Active: active (running) since Sun 2015-12-06 10:12:23 JST; 1min 0s ago Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited, status=1/FAILURE) Main PID: 3164 (java) CGroup: /system.slice/cloudstack-management.service mq3164 java -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -X... Dec 06 10:13:11 acs.dom.local server[3164]: INFO [c.c.s.ConfigurationServerImpl] (localhost-startStop-1:null) Trying to...vm iso Dec 06 10:13:11 acs.dom.local sudo[3231]: cloud : TTY=unknown ; PWD=/usr/share/cloudstack-management ; USER=root ; COMMA...vm_mnt Dec 06 10:13:11 acs.dom.local sudo[3234]: cloud :