[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13412919#comment-13412919 ] Curtis C. commented on VCL-590: --- Yes the mgmtnode was unable to ping the server I was trying to image. Might be better to drop out instead of running a broken nova command if the instance_id is empty though. So at this point I can capture a linux image from vcld --setup on Openstack Essex with your nova api module. :) Going to continue on doing more testing... Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api .pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13411567#comment-13411567 ] Young-Hyun commented on VCL-590: Hi Curtis Can you test lower cases for all variables in openstack.conf? I got the variables when I use lower cases. Our configurations is : $ cat /etc/vcl/openstack/openstack.conf os_tenant_name = admin, os_username = admin, os_password = adminpassword, os_auth_url = http://IPaddress:5000/v2.0/;, Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api .pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13411652#comment-13411652 ] Curtis C. commented on VCL-590: --- Yeah that makes sense. :) I believe the config variables are getting picked up now with that change to lower case. Still doing some more testing, specifically around capturing a linux image Right now getting this error...seems instance_id is empty so the nova command is incomplete. |25586|32:32|image| WARNING |25586|32:32|image| 2012-07-11 11:43:59|25586|32:32|image|vcld:warning_handler(610)|Use of uninitialized value $instance_id in concatenation (.) or string at /usr/share/vcl-managementnode/bin/../lib/VCL/Module/Provisioning/openstack.pm line 251. |25586|32:32|image| ( 0) vcld, warning_handler (line: 610) |25586|32:32|image| (-1) openstack.pm, _image_create (line: 251) |25586|32:32|image| (-2) openstack.pm, capture (line: 217) |25586|32:32|image| (-3) image.pm, process (line: 162) |25586|32:32|image| (-4) vcld, make_new_child (line: 568) |25586|32:32|image| (-5) vcld, main (line: 346) 2012-07-11 11:43:59|25586|32:32|image|openstack.pm:_image_create(252)|New Image Capture Command: nova image-create centos5image-Server30127-v0- usage: nova image-create [--poll] server name error: too few arguments Try `nova help image-create' for more information. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api .pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13411905#comment-13411905 ] Curtis C. commented on VCL-590: --- I added a notify statement here: notify($ERRORS{'OK'}, 0, Instance ID is $instance_id); my $new_image_name = $self-_image_create($instance_id); == And this is what I found in the log: 2012-07-11 15:48:24|8400|36:36|image|openstack.pm:capture(217)|Instance ID is == So the instance_id is empty. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api .pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13410817#comment-13410817 ] Curtis C. commented on VCL-590: --- Hi. I'm trying out the openstack_nova_api.pm module on 2.2.1 and Openstack Essex. It would be helpful if you could describe the database changes and the format of the config file. I did manage to get to create an image from an existing image via nova image-create, but I added the table, and I could not seem to get the config to pickup the variables unless changing to look like this: my $os_auth_url = $config{OS_AUTH_URL}; my $os_tenant_name = $config{OS_TENANT_NAME}; my $os_username = $config{OS_USERNAME}; my $os_password = $config{OS_PASSWORD}; and the config file looks like this: # cd /etc/vcl/openstack/ You have new mail in /var/spool/mail/root # cat openstack.conf OS_AUTH_URL = http://SOME_IP_ADDRESS:5000/v2.0;, OS_TENANT_NAME = vcl, OS_USERNAME = vcl, OS_PASSWORD = REMOVED Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13290213#comment-13290213 ] Young-Hyun commented on VCL-590: I've uploaded two prototype versions of Openstack Modules: 1. Openstack module using euca2ool : It does not support the capture function due to the issue on 'euca-create-image' on Openstack Essex. : Install euca2ool on your VCL management node 2. Openstack module using Nova APIs : It supports both reservation and capture functions. : The file format for virtual machines must be qcow2 file format for capture because nova image-create use qemu-img snapshot that does not support 'raw' file format of images. : Install python-novaclient on your VCL management node I've created one table for mapping openstack image name (uuid) to vcl image name (more readable) but it's not necessary. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack_euca2ool.pm, openstack_nova_api.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284982#comment-13284982 ] Everett Toews commented on VCL-590: --- Is there a particular reason you're not using the OpenStack API to control OpenStack? You could use the nova command line interface to do this just as easily. Perhaps nova image-create would fix your problem with capturing images? You can find more info on the nova CLI at: https://github.com/openstack/python-novaclient It's also in PyPI: http://pypi.python.org/pypi/python-novaclient It's OpenStack's native API and it's very easy to install: sudo pip install python-novaclient or sudo apt-get install python-novaclient or sudo yum install python-novaclient Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284999#comment-13284999 ] Young-Hyun commented on VCL-590: There is no particular reason to using OpenStack APIs but I used them because they are very close to Amazon EC2 APIs and IBM SCP. I've also tested nova image-create for capturing images but it only works on the nova server with keystone. I've tried to test it on a nova client but failed. I think it might be configuration problem but I didn't find the solution yet. If this problem is solved, I can manage two different OpenStack modules for VCL. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13285119#comment-13285119 ] Young-Hyun commented on VCL-590: I've fixed the keystone problem on a nova client. In fact, it was the MySQL database access issue that the nova client tried to connect localhost instead of connecting the keystone server. So, I am going to work on the OpenStack module using nova APIs and I will post it when it done. BTW, Everett, thanks a lot for your comments. I really appreciate that. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13285128#comment-13285128 ] Everett Toews commented on VCL-590: --- Cheers. Glad I could help. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (VCL-590) Openstack Essex Module
[ https://issues.apache.org/jira/browse/VCL-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13278787#comment-13278787 ] Young-Hyun commented on VCL-590: I've attached the openstack.pm that use the euca2ools APIs to communicate with Openstack Essex. 1. OpenStack Essex Installation I think one of the best installation instruction for OpenStack Essex on Ubuntu is as follows: http://www.hastexo.com/resources/docs/installing-openstack-essex-20121-ubuntu-1204-precise-pangolin 2. Provisioning 'raw' file format image with IDE disk bus type (e.g., Windows XP images) The OpenStack's default provisioning image type is 'qcow2' file format and 'virtio' bus type, respectively. To test images with raw file format with IDE disk bus type, you need to configure /etc/nova/nova.conf and change /usr/share/pyshared/nova/virt/libvirt.xml.template as like below: (a) Add the following options to /etc/nova/nova.conf --use_cow_images=false --libvirt_disk_prefix=hd (b) Change the following part in /usr/share/pyshared/nova/virt/libvirt.xml.template. #set $root_disk_bus = 'virtio' == #set $root_disk_bus = 'virtio' = 'ide' However, these are temporarily solutions for testing images with raw file format with ide bus type. It might cause problems when you provisioning of qcow2 file format with virtio disk bus type. 3. Capturing images euca-create-image has an issue on OpenStack Essex. I will add when the issue is solved. Openstack Essex Module -- Key: VCL-590 URL: https://issues.apache.org/jira/browse/VCL-590 Project: VCL Issue Type: New Feature Components: database, vcld (backend) Affects Versions: 2.2.1 Environment: OpenStack Essex with Ubuntu 12.04 x64 server Reporter: Young-Hyun Attachments: openstack.pm The OpenStack module supports the VCL provisioning module for OpensStack Essex that is open source software for building private and public clouds (http://www.openstack.org/) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira