[one-users] What are the causes let OpenNebula thinks VM is POWEROFF and how to recover?
Hi Everyone, Anyone had ever encounter an issue about VM stat changes to POWEROFF a few minutes (2 ~ 3 minutes) after RUNNING? The actual problem is that the POWEROFF stat is incorrect as the VM is actually running on the computing node. If you try to boot it back, it will failed as that instance is already running on the same computing node. Is it a bug of OpenNebula? Any suggestions to get it recovered? Thanks, Gene * VM log Thu Feb 12 14:46:36 2015 [Z0][DiM][I]: New VM state is ACTIVE. Thu Feb 12 14:46:37 2015 [Z0][LCM][I]: New VM state is PROLOG. Thu Feb 12 14:49:43 2015 [Z0][LCM][I]: New VM state is BOOT Thu Feb 12 14:49:43 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/42922/deployment.0 Thu Feb 12 14:49:43 2015 [Z0][VMM][I]: ExitCode: 0 Thu Feb 12 14:49:43 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre. Thu Feb 12 14:49:46 2015 [Z0][VMM][I]: ExitCode: 0 Thu Feb 12 14:49:46 2015 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy. Thu Feb 12 14:49:46 2015 [Z0][VMM][I]: ExitCode: 0 Thu Feb 12 14:49:46 2015 [Z0][VMM][I]: Successfully execute network driver operation: post. Thu Feb 12 14:49:46 2015 [Z0][LCM][I]: New VM state is RUNNING Thu Feb 12 14:51:48 2015 [Z0][DiM][I]: New VM state is POWEROFF ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VNC and serial console
FYI. We added virtual serial console feature on our private cloud via adding and modifying a few back-end scripts and UI change a little bit. Gene On 14-11-19 07:37 AM, Vassilis Vatikiotis wrote: Is it possible to setup both noVNC and a serial console? I've already setup a template for serial access like this (in the Other- RAW data) devices serial type=pty target port=0/ /serial console type=pty target port=0/ /console /devices Whenever I try to setup something like the following, noVNC proceeds normally but never reaches login: In /etc/init/ttyS1.conf: # ttyS1 - getty # # This service maintains a getty on ttyS1 from the point the system is # started until it is shut down again. start on stopped rc or RUNLEVEL=[12345] stop on runlevel [!12345] respawn exec /sbin/getty -L ttyS1 vt102 When I remove the above file noVNC start behaves as expected i.e. I can login. So, in my test, I can have, either serial console access *or* noVNC. Never both. Is this possible? Thanks! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] web UI does not work for zone/vDC if sunstone server is behind a reverse proxy server
Thanks Daniel! Could you please specify how? Gene On 14-08-25 06:16 AM, Daniel Molina wrote: ZONE_NAME http header ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] web UI does not work for zone/vDC if sunstone server is behind a reverse proxy server
Thank you Carlo! It works after those two parameters setting. Gene --- server { listen 12.34.56.78:80; server_name xx.yy.alcatel-lucent.com; underscores_in_headers on; location / { proxy_set_headerHost $host; proxy_pass_request_headers on; proxy_set_header Accept-Encoding ; proxy_set_headerX-Real-IP $remote_addr; proxy_set_headerX-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_pass http://localhost:9869; } error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; } On 14-08-25 09:02 AM, Carlo Daffara wrote: You should add the two parameters underscores_in_headers on; proxy_pass_request_headers on; to your nginx configuration file; so that header requests are passed as-is (the first one is used to force passing headers that contain an underscore, as required by Sunstone) cheers carlo daffara - Messaggio originale - Da: Gene Liu gene@alcatel-lucent.com A: Daniel Molina dmol...@opennebula.org Cc: users@lists.opennebula.org Inviato: Lunedì, 25 agosto 2014 15:00:33 Oggetto: Re: [one-users] web UI does not work for zone/vDC if sunstone server is behind a reverse proxy server Thanks Daniel! Could you please specify how? Gene On 14-08-25 06:16 AM, Daniel Molina wrote: ZONE_NAME http header ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] why VM on slave zone is shutdown itself?
All, I wonder if anyone experienced the same weird error -- VMs shutdown themselves? (in my environment, after running about 2 minutes) The VMs from same template/image run well on master zone. Anyone has any ideas? Log from sunstone console. (other logs are clean) Fri Aug 22 14:56:12 2014 [Z100][DiM][I]: New VM state is ACTIVE. Fri Aug 22 14:56:12 2014 [Z100][LCM][I]: New VM state is PROLOG. Fri Aug 22 14:56:32 2014 [Z100][LCM][I]: New VM state is BOOT Fri Aug 22 14:56:32 2014 [Z100][VMM][I]: Generating deployment file: /var/lib/one/vms/6/deployment.0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: pre. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute virtualization driver operation: deploy. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: post. Fri Aug 22 14:56:42 2014 [Z100][LCM][I]: New VM state is RUNNING Fri Aug 22 14:58:36 2014 [Z100][DiM][I]: New VM state is POWEROFF Thanks, Gene ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] why VM on slave zone is shutdown itself?
Sorry that I missed some important information: OpenNebula 4.8 Nodes and frontend server are all RHEL7.0 Hypervisor: KVM Thanks, Gene On 14-08-22 03:13 PM, Liu, Gene wrote: All, I wonder if anyone experienced the same weird error -- VMs shutdown themselves? (in my environment, after running about 2 minutes) The VMs from same template/image run well on master zone. Anyone has any ideas? Log from sunstone console. (other logs are clean) Fri Aug 22 14:56:12 2014 [Z100][DiM][I]: New VM state is ACTIVE. Fri Aug 22 14:56:12 2014 [Z100][LCM][I]: New VM state is PROLOG. Fri Aug 22 14:56:32 2014 [Z100][LCM][I]: New VM state is BOOT Fri Aug 22 14:56:32 2014 [Z100][VMM][I]: Generating deployment file: /var/lib/one/vms/6/deployment.0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: pre. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute virtualization driver operation: deploy. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: post. Fri Aug 22 14:56:42 2014 [Z100][LCM][I]: New VM state is RUNNING Fri Aug 22 14:58:36 2014 [Z100][DiM][I]: New VM state is POWEROFF Thanks, Gene ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] why VM on slave zone is shutdown itself?
I just found that these VMs are running still on the nodes. Its weird that OpenNebula changed their status to POWEROFF Sounds like bug of OpenNebula? --- [root@node2 ~]# virsh list IdName State 5 one-7 running On 14-08-22 03:16 PM, Liu, Gene wrote: Sorry that I missed some important information: OpenNebula 4.8 Nodes and frontend server are all RHEL7.0 Hypervisor: KVM Thanks, Gene On 14-08-22 03:13 PM, Liu, Gene wrote: All, I wonder if anyone experienced the same weird error -- VMs shutdown themselves? (in my environment, after running about 2 minutes) The VMs from same template/image run well on master zone. Anyone has any ideas? Log from sunstone console. (other logs are clean) Fri Aug 22 14:56:12 2014 [Z100][DiM][I]: New VM state is ACTIVE. Fri Aug 22 14:56:12 2014 [Z100][LCM][I]: New VM state is PROLOG. Fri Aug 22 14:56:32 2014 [Z100][LCM][I]: New VM state is BOOT Fri Aug 22 14:56:32 2014 [Z100][VMM][I]: Generating deployment file: /var/lib/one/vms/6/deployment.0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: pre. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute virtualization driver operation: deploy. Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: ExitCode: 0 Fri Aug 22 14:56:42 2014 [Z100][VMM][I]: Successfully execute network driver operation: post. Fri Aug 22 14:56:42 2014 [Z100][LCM][I]: New VM state is RUNNING Fri Aug 22 14:58:36 2014 [Z100][DiM][I]: New VM state is POWEROFF Thanks, Gene ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] web UI does not work for zone/vDC if sunstone server is behind a reverse proxy server
After I setup a proxy server (ngnix) before sunstone server on master. From Sunstone UI (192.168.100.10), I can not change zone to zone1. Other functions work well from sunstone UI, but changing zone. * If I remove the proxy server, and access directly to sunstone server: 192.168.100.10:9869, changing zone from sunstone portal works. my nginx reverse proxy server setting is as below: -- [root@vone_gene ~]# cat /etc/nginx/conf.d/default.conf # # The default server # server { listen 192.168.100.10:80; server_name mycloud.alcatel-lucent.com; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:9869; } error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } sunstone server settings: - # Server Configuration # Directory to store temp files when uploading images # :tmpdir: /var/tmp # OpenNebula sever contact information # :one_xmlrpc: http://localhost:2633/RPC2 # Server Configuration # :host: 127.0.0.1 :port: 9869 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Hostname missing from context
If you look into those init scripts (under /etc/one-context.d) you will figure out the details. In my context setting (4.4.1), I have both SET_HOSTNAME and DNS_HOSTNAM and it works well. CONTEXT NETWORK YES TOKEN YES SET_HOSTNAME$UNAME$VMID SEARCH_DOMAIN ** DNS_HOSTNAMEYES Gene On 14-08-19 07:59 AM, Diego M. wrote: Assigning the name is part of the contextualization, it would depend on the version you are running, but assumign it is the last one, you can refer to this link: http://docs.opennebula.org/4.8/user/virtual_machine_setup/cong.html As you will see there, the hostname is assigned through the hostname variable on the context like this: CONTEXT = [ HOSTNAME=$name ] Let me know if it works for you :) Cheers! Date: Tue, 19 Aug 2014 11:51:58 +0200 From: roe...@roedie.nl To: users@lists.opennebula.org Subject: [one-users] Hostname missing from context Hi, When I create a VM with OpenNebula the VM does not get the correct hostname. I can't seem to figure out why, but it is missing from my context settings. When I look in context.sh I see: # Context variables generated by OpenNebula DISK_ID='1' ETH0_DNS='8.8.8.8 ' ETH0_GATEWAY='192.168.3.1' ETH0_IP='192.168.3.202' ETH0_MAC='02:00:c0:a8:03:ca' ETH0_MASK='255.255.255.0' ETH0_NETWORK='192.168.3.0' NETWORK='YES' SSH_PUBLIC_KEY='ssh-rsa [...] sander@gallumbits ' TARGET='hda' I expected that OpenNebula would add the vm-name as hostname. Am I wrong? Greets, Sander ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can user's RAM quota acount only running/active VMs?
Thank you all very much for the replies! Gene On 14-05-13 06:37 PM, Ruben S. Montero wrote: Yes, there maybe a problem. There won't be nothing to stop the scheduler from allocating the VM if it's resumed. That's the reason for accounting the capacity even if you are not actually using it, you'll be granted with it as soon you request it (and its available). So you may be not making a complete use of the resource them but you have a reservation for them, especially for SUSPENDED/POWER OFF. But also for HOLD, PENDING, STOP, that will potentially interfere with other users when the VM is resumed. Now we could check the quota when the VM is moved to PENDING. For example, OpenNebula won't let you resume the VM. However, the other quotas should be also modified to follow the same convention. For example, number of IP's leased from a network. The main problem I see here is that would be conflicting with other metrics like (number of VMs). If we only limit ACTIVE VMs a DoS attack could be done easily by creating VMs in STOP (e.g. size of checkpoint files is implicitly controlled by the MEMORY quota). If we preserve the quota as in 4.6, then the MEMORY quota for ACTIVE VMs wouldn't be useful. Maybe is not fair in all cases (I believe that only stop VMs are a problem, and that operation is not exposed for the end-users, i.e. cloud view ) but it is consistent for all the quotas... Cheers Ruben On Tue, May 13, 2014 at 11:15 PM, Jon three1...@gmail.com mailto:three1...@gmail.com wrote: How would that affect scheduling? For instance I have a vm that only comes on at certain times of the day. I think this is a good change too, I'm just curious if there are any repercussions to the change. Thanks, Jon A On May 13, 2014 2:04 PM, kiran ranjane kiran.ranj...@gmail.com mailto:kiran.ranj...@gmail.com wrote: +1 vote for this Thanks Kiran Ranjane On Tue, May 13, 2014 at 3:05 PM, Stefan Kooman ste...@bit.nl mailto:ste...@bit.nl wrote: Quoting Carlos Martín Sánchez (cmar...@opennebula.org mailto:cmar...@opennebula.org): Hi, On Fri, May 2, 2014 at 10:51 PM, Liu, Guang Jun (Gene) gene@alcatel-lucent.com mailto:gene@alcatel-lucent.com wrote: Hi there, Is there a way to config or twist OpenNebula so that quota management (e.g. RAM) counts resources of active VMs only? I found the quota management (RAM per user) counts all the VMs which created by a user. We found if the quota only counts the resources from the active VMs, that means more sense. E.g., I have 16RAM quota. I create one VM w/ 16G RAM. Then I save/stop my VM. The system should allow me to create another VM w/ 16G RAM if quota management counts only active VMs. Thanks! Gene There isn't a way to configure that. It would require to modify the core. But I think it makes sense. So I return the question to the community: ¿Should we consider this change in the quota behaviour? I vote for this change. Your not actually consuming resources on the hypervisor(s) for not having running vm's ... Gr. Stefan -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 tel:%2B31%20318%20648%20688 / i...@bit.nl mailto:i...@bit.nl ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Ruben S. Montero, PhD Project co-Lead and Chief Architect http://lists.opennebula.org/listinfo.cgi/users-opennebula.org OpenNebula - Flexible Enterprise Cloud Made Simple http://lists.opennebula.org/listinfo.cgi/users-opennebula.orgwww.OpenNebula.org http://www.OpenNebula.org | rsmont...@opennebula.org