[Openstack] Error while installing devstack

2012-01-22 Thread Sagar Nikam
Hi All,

I am new to openstack and trying to install it using devstack.
On executing stack.sh, I am getting the following error

++ cat /home/sagar/devstack/files/pips/horizon
/home/sagar/devstack/files/pips/keystone
/home/sagar/devstack/files/pips/tempest
+ pip_install django-nose-selenium pycrypto==2.3 -e git+
https://github.com/jacobian/openstack.compute.git#egg=openstack PassLib pika
+ [[ False = \T\r\u\e ]]
+ sudo PIP_DOWNLOAD_CACHE=/var/cache/pip
HTTP_PROXY=http://myproxy.com:8080/HTTPS_PROXY=
https://myproxy.com:8080/ pip install --use-mirrors django-nose-selenium
pycrypto==2.3 -e git+
https://github.com/jacobian/openstack.compute.git#egg=openstack PassLib pika
fatal: ambiguous argument 'origin/master': unknown revision or path not in
the working tree.
Use '--' to separate paths from revisions
Downloading/unpacking django-nose-selenium
  Running setup.py egg_info for package django-nose-selenium

Requirement already satisfied (use --upgrade to upgrade): pycrypto==2.3 in
/usr/lib/python2.7/dist-packages
Downloading/unpacking PassLib
  Running setup.py egg_info for package PassLib

no previously-included directories found matching 'docs/_build'
no previously-included directories found matching '*.komodoproject'
Downloading/unpacking pika
  Running setup.py egg_info for package pika

Obtaining openstack from git+
https://github.com/jacobian/openstack.compute.git#egg=openstack
  Updating ./src/openstack clone
  Could not find a tag or branch 'origin/master', assuming commit.
  Complete output from command /usr/bin/git reset --hard -q origin/master:


Command /usr/bin/git reset --hard -q origin/master failed with error code
128
Storing complete log in /home/sagar/.pip/pip.log
++ failed
++ local r=1
++ set +o xtrace

Attached is the log file. I am running this on a VM within my office
network.
I have set the proxies and then executing stack.sh
http_proxy=http://myproxy.com:8080/
https_proxy=http://myproxy.com:8080/./stack.sh

Am I missing something ?

Regards,
Sagar
+ BASE_SQL_CONN=mysql://root:sagar@localhost
+ RABBIT_HOST=localhost
+ read_password RABBIT_PASSWORD 'ENTER A PASSWORD TO USE FOR RABBIT.'
+ set +o xtrace
+ GLANCE_HOSTPORT=10.10.130.24:9292
+ SWIFT_DATA_LOCATION=/opt/stack/swift/data
+ SWIFT_CONFIG_LOCATION=/opt/stack/swift/config
+ SWIFT_LOOPBACK_DISK_SIZE=100
+ SWIFT_PARTITION_POWER_SIZE=9
+ [[ 
g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit,openstackx
 =~ swift ]]
+ read_password SERVICE_TOKEN 'ENTER A SERVICE_TOKEN TO USE FOR THE SERVICE 
ADMIN TOKEN.'
+ set +o xtrace
+ read_password ADMIN_PASSWORD 'ENTER A PASSWORD TO USE FOR HORIZON AND 
KEYSTONE (20 CHARS OR LESS).'
+ set +o xtrace
+ KEYSTONE_AUTH_HOST=10.10.130.24
+ KEYSTONE_AUTH_PORT=35357
+ KEYSTONE_AUTH_PROTOCOL=http
+ KEYSTONE_SERVICE_HOST=10.10.130.24
+ KEYSTONE_SERVICE_PORT=5000
+ KEYSTONE_SERVICE_PROTOCOL=http
+ [[ -n '' ]]
+ trap failed ERR
+ set -o xtrace
+ sudo mkdir -p /opt/stack
+ '[' '!' -w /opt/stack ']'
+ apt_get update
+ [[ False = \T\r\u\e ]]
+ local sudo=sudo
++ id -u
+ '[' 1000 = 0 ']'
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy=http://myproxy.com:8080/ 
https_proxy=https://myproxy.com:8080/ apt-get --option 
Dpkg::Options::=--force-confold --assume-yes update
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://in.archive.ubuntu.com oneiric InRelease
Hit http://security.ubuntu.com oneiric-security Release.gpg
Ign http://in.archive.ubuntu.com oneiric-updates InRelease
Hit http://security.ubuntu.com oneiric-security Release
Ign http://in.archive.ubuntu.com oneiric-backports InRelease
Hit http://security.ubuntu.com oneiric-security/main Sources
Hit http://in.archive.ubuntu.com oneiric Release.gpg
Hit http://security.ubuntu.com oneiric-security/restricted Sources
Hit http://in.archive.ubuntu.com oneiric-updates Release.gpg
Hit http://security.ubuntu.com oneiric-security/universe Sources
Hit http://in.archive.ubuntu.com oneiric-backports Release.gpg
Hit http://security.ubuntu.com oneiric-security/multiverse Sources
Hit http://in.archive.ubuntu.com oneiric Release
Hit http://security.ubuntu.com oneiric-security/main amd64 Packages
Hit http://in.archive.ubuntu.com oneiric-updates Release
Hit http://security.ubuntu.com oneiric-security/restricted amd64 Packages
Hit http://in.archive.ubuntu.com oneiric-backports Release
Hit http://security.ubuntu.com oneiric-security/universe amd64 Packages
Hit http://in.archive.ubuntu.com oneiric/main Sources
Hit http://security.ubuntu.com oneiric-security/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com oneiric/restricted Sources
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://in.archive.ubuntu.com oneiric/universe Sources
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://in.archive.ubuntu.com oneiric/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit 

Re: [Openstack] Boot from volume invalid device name /dev/vda

2012-01-22 Thread Cole Robinson
On 01/21/2012 01:04 PM, Tres Henry wrote:
 Getting an error trying to boot an instance from volume (the following is the
 traceback from nova compute):
 
 (nova.rpc): TRACE: Traceback (most recent call last):
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/rpc/impl_kombu.py, line 723,
 in _process_data
 (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/exception.py, line 126, in
 wrapped
 (nova.rpc): TRACE: return f(*args, **kw)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 150,
 in decorated_function
 (nova.rpc): TRACE: self.add_instance_fault_from_exc(context, 
 instance_uuid, e)
 (nova.rpc): TRACE:   File /usr/lib/python2.7/contextlib.py, line 24, in 
 __exit__
 (nova.rpc): TRACE: self.gen.next()
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 145,
 in decorated_function
 (nova.rpc): TRACE: return function(self, context, instance_uuid, *args,
 **kwargs)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 565,
 in run_instance
 (nova.rpc): TRACE: self._run_instance(context, instance_uuid, **kwargs)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 394,
 in _run_instance
 (nova.rpc): TRACE: vm_state=vm_states.ERROR)
 (nova.rpc): TRACE:   File /usr/lib/python2.7/contextlib.py, line 24, in 
 __exit__
 (nova.rpc): TRACE: self.gen.next()
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 381,
 in _run_instance
 (nova.rpc): TRACE: self._deallocate_network(context, instance)
 (nova.rpc): TRACE:   File /usr/lib/python2.7/contextlib.py, line 24, in 
 __exit__
 (nova.rpc): TRACE: self.gen.next()
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 378,
 in _run_instance
 (nova.rpc): TRACE: injected_files, admin_password)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/compute/manager.py, line 511,
 in _spawn
 (nova.rpc): TRACE: network_info, block_device_info)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/exception.py, line 126, in
 wrapped
 (nova.rpc): TRACE: return f(*args, **kw)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/virt/libvirt/connection.py,
 line 681, in spawn
 (nova.rpc): TRACE: domain = self._create_new_domain(xml)
 (nova.rpc): TRACE:   File /opt/stack/nova/nova/virt/libvirt/connection.py,
 line 1255, in _create_new_domain
 (nova.rpc): TRACE: domain = self._conn.defineXML(xml)
 (nova.rpc): TRACE:   File /usr/lib/python2.7/dist-packages/libvirt.py, line
 1708, in defineXML
 (nova.rpc): TRACE: if ret is None:raise libvirtError('virDomainDefineXML()
 failed', conn=self)
 (nova.rpc): TRACE: libvirtError: internal error Invalid harddisk device name:
 /dev/vda
 (nova.rpc): TRACE:
 
 The block_device_mapping supplied was {/dev/vda: 1:::1} which results in:
 [{u'volume_size': u'', u'device_name': u'/dev/vda', u'delete_on_termination':
 u'1', u'volume_id': u'1'}]), however I've tried about every combination of
 values I can think of (supplying type, size, changing device name, etc.) with
 the same result (although the error is Invalid harddisk device name:
 /dev/vdb or whatever I supplied as the device name).
 
 If it helps:
 Running devstack @ af0f7cadb9
 Tried to launch an instance with both the cirros default devstack image and
 UEC oneiric x64.
 The existing volume is larger than the image's ephemeral volume (not sure if
 that matters).
 
 What am I doing wrong?
 

I think libvirt is expecting a device name like 'vda' and not '/dev/vda', so
try giving that a spin in block_device_mapping.

- Cole

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Error while installing devstack

2012-01-22 Thread Anthony Young
I'm not sure of the exact reason why this is failing - it could be an issue
with how pip deals with git connections when a proxy is specified.  It
could also be a transient git network issue.  If the latter is the issue,
you may try running stack.sh again.

Regardless, openstack.compute is no longer a horizon dependency and should
be removed from devstack.

https://review.openstack.org/3279
https://bugs.launchpad.net/devstack/+bug/920142

Anthony

On Sun, Jan 22, 2012 at 8:17 AM, Sagar Nikam sagar.r.ni...@gmail.comwrote:

 Hi All,

 I am new to openstack and trying to install it using devstack.
 On executing stack.sh, I am getting the following error

 ++ cat /home/sagar/devstack/files/pips/horizon
 /home/sagar/devstack/files/pips/keystone
 /home/sagar/devstack/files/pips/tempest
 + pip_install django-nose-selenium pycrypto==2.3 -e git+
 https://github.com/jacobian/openstack.compute.git#egg=openstack PassLib
 pika
 + [[ False = \T\r\u\e ]]
 + sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY=
 http://myproxy.com:8080/ HTTPS_PROXY=https://myproxy.com:8080/ pip
 install --use-mirrors django-nose-selenium pycrypto==2.3 -e git+
 https://github.com/jacobian/openstack.compute.git#egg=openstack PassLib
 pika
 fatal: ambiguous argument 'origin/master': unknown revision or path not in
 the working tree.
 Use '--' to separate paths from revisions
 Downloading/unpacking django-nose-selenium
   Running setup.py egg_info for package django-nose-selenium

 Requirement already satisfied (use --upgrade to upgrade): pycrypto==2.3 in
 /usr/lib/python2.7/dist-packages
 Downloading/unpacking PassLib
   Running setup.py egg_info for package PassLib

 no previously-included directories found matching 'docs/_build'
 no previously-included directories found matching '*.komodoproject'
 Downloading/unpacking pika
   Running setup.py egg_info for package pika

 Obtaining openstack from git+
 https://github.com/jacobian/openstack.compute.git#egg=openstack
   Updating ./src/openstack clone
   Could not find a tag or branch 'origin/master', assuming commit.
   Complete output from command /usr/bin/git reset --hard -q origin/master:

 
 Command /usr/bin/git reset --hard -q origin/master failed with error code
 128
 Storing complete log in /home/sagar/.pip/pip.log
 ++ failed
 ++ local r=1
 ++ set +o xtrace

 Attached is the log file. I am running this on a VM within my office
 network.
 I have set the proxies and then executing stack.sh
 http_proxy=http://myproxy.com:8080/ 
 https_proxy=http://myproxy.com:8080/./stack.sh

 Am I missing something ?

 Regards,
 Sagar

 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp