sahid / warm

Deploy a simple OpenStack environment from template
Apache License 2.0
2 stars 1 forks source link

Unable to launch warm #2

Open mvalo opened 10 years ago

mvalo commented 10 years ago

Hi Sahid,

I'm Maxime Valo from Canal+, we had a meeting together few months back :-) I'm trying to use warm to launch a CW instance but I'm getting following error with your yaml basic example.

ubuntu@webtv-tools-dev:~$ cat cloudwatt-template-simple.yaml server:

ubuntu@webtv-tools-dev:~$ export | grep OS declare -x OS_AUTH_URL="https://identity.fr1.cloudwatt.com/v2.0" declare -x OSPASSWORD="***" declare -x OS_TENANT_ID="896cc0aa197a460582bf06f1ea618de3" declare -x OS_TENANT_NAME="367aea91-c1a0-11e3-ad8b-525400872571" declare -x OSUSERNAME="****"

ubuntu@webtv-tools-dev:~$ warm cloudwatt-template-simple.yaml Traceback (most recent call last): File "/usr/local/bin/warm", line 9, in load_entry_point('warm==0.3.1', 'console_scripts', 'warm')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2015, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python2.7/dist-packages/warm/init.py", line 26, in from openstackclient.common import clientmanager File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 21, in from openstackclient.identity import client as identity_client File "/usr/local/lib/python2.7/dist-packages/openstackclient/identity/client.py", line 18, in from keystoneclient.v2_0 import client as identity_client_v2_0 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/init.py", line 2, in from keystoneclient.v2_0.client import Client File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 20, in from keystoneclient import httpclient File "/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 27, in import keyring File "/usr/local/lib/python2.7/dist-packages/keyring/init.py", line 9, in from core import (set_keyring, get_keyring, set_password, get_password, File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 166, in init_backend() File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 65, in init_backend keyrings.sort(key = lambda x: -x.supported()) File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 65, in keyrings.sort(key = lambda x: -x.supported()) File "/usr/local/lib/python2.7/dist-packages/keyring/backends/SecretService.py", line 18, in supported bus = secretstorage.dbus_init() File "/usr/lib/python2.7/dist-packages/secretstorage/init.py", line 42, in dbus_init return dbus.SessionBus() File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in new mainloop=mainloop) File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in new bus = BusConnection.new(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in new bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 ubuntu@webtv-tools-dev:~$

mvalo commented 10 years ago

In addition to my previous comment, I saw this know issue : https://bugs.launchpad.net/ubuntu/+source/python-keystoneclient/+bug/1242992

So I ran "sudo pip install --upgrade keyring" to upgrade my keyring but know getting :

ubuntu@webtv-tools-dev:~$ warm cloudwatt-template-simple.yaml Traceback (most recent call last): File "/usr/local/bin/warm", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in parse_requirements(requires), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: keyring>=1.6.1,<2.0

sahid commented 10 years ago

Hello Maxime, Sorry i was in vacation during the last weekend.

About your problem, I see two things:

For the problem with your installation the best you can do for now is to create a fresh virtualenv of python2.7. Then check if warm is well installed by "warm -v"

For the template , the name of the image and flavor are not the same in our beta compute. You can use the command 'nova image-list' and 'nova flavor-list' (I think we don't have an image cirros) to find the good one. Also our beta use several external networks so you have to pick one with the command 'nova net-list'

Here is an example that should be work but because it's an image Ubuntu you have to specify a public key.


# This line will create a key canalp and put the private on your local directory.
# If you already have a key you can remove this part ans update the server part.
key: 
- name: canalp 

server:
- name: srv 
  flavor: n1.cw.standard-2
  image: Ubuntu 12.04
  networks: 
      - name: externals-04
  key: canalp

Maxime, you have problem to configure it, you can call me. don't hesitate.