My First Openstack Instance


#1

[url=http://txt.fliglio.com/2014/06/openstack-on-dreamcompute/]

the above link is the procedure I am using to get started on DreamCompute.

I have sent tickers to DreamHost regarding this : Here is there reply:

Message #: 133448211
Time: 1491981204
Hello Joseph,

Thank you for contacting us! I have responded below.

On Tue, 11 Apr 2017, you wrote:

In a terminal, source this file (source
~/Downloads/dhc447391-openrc.sh) and punch in your DreamCompute
password. Now you can use the Nova (compute management) / Neutron
(network management) cli clients to control your tenant.

I have downloaded the dhc2193015-openrc.sh file but can not get it to
be inplemented with ‘source’ from the terminal. And I try to do all
my serious work from a terminal.

Await your reply !! Be patiant with me :slight_smile:

Hmm. That’s unusual. Assuming that that terminal session is on the same
local Ubuntu system that you submitted this support ticket from, can you
try executing the file using dot (’.’) like this?

. dhc2193015-openrc.sh

If that doesn’t work, can you let us know what error messages (if any)
you are getting when trying to execute the file?

On Tue, 11 Apr 2017, you wrote:

The above pretty much explains my problems. I attach a file of the
output I’m getting.

Sorry for causing you concern, Joseph! Our instructions for installing
the OpenStack command-line interface are, unfortunately, a bit
discombobulated at this time. Additionally there are developmental issues
upstream that are causing some (if not all) of the errors you are
encountering. But generally speaking, the errors are transitory and not
of any genuine concern.

Now, to address the errors you are seeing, please try the following
things.

  • For the “Permission denied” error, please separately install the 'pytz’
    module using pip (command should be something like pip install pytz).
    Once that’s done, recursively try executing the command openstack help
    and checking for any additional missed modules and install them manually.

  • For the “No matching distribution found” error, the problem (that our
    documentation doesn’t emphasize very well) is that you haven’t specified
    a project (neutron, glance, etc). Try, for example, the command pip install python-novaclient and see if that works.

Hopefully this helps you get going with the command-line clients, but if
you continue to have issues, just write back to us and we’ll do our best
to assist you further!

Thanks!
Heckman

Here some output I have sent to DreamHost:

Message #: 7730936
Time: 1492015003
I am having issues. The following is the output from my browser that created these issues:

My most resent User Credential from DreamCompute:

User Name: josoco3

Project Name: dhc2193015

Project ID: 0b33e9b3adf746c1890fa8b3f2da7412

Authtication URL: https://iad2.dream.io:5000/v2.0

Output From Authticaion URL:
{“version”: {“status”: “stable”, “updated”: “2014-04-17T00:00:00Z”, “media-types”: [{“base”: “application/json”, “type”: “application/vnd.openstack.identity-v2.0+json”}], “id”: “v2.0”, “links”: [{“href”: “https://iad2.dream.io:5000/v2.0/”, “rel”: “self”}, {“href”: “http://docs.openstack.org/”, “type”: “text/html”, “rel”: “describedby”}]}}

This is local terminal output I put in a ticket to DreamCompute yesterday:

Message #: 133448211
Time: 1491981204

Thank You Kindly!

And Here is some output from my local terminal using Ubuntu 16.04:

pip install python-openstackclient
Collecting python-openstackclient
Downloading python_openstackclient-3.9.0-py2.py3-none-any.whl (705kB)
100% |████████████████████████████████| 706kB 775kB/s
Collecting oslo.i18n>=2.1.0 (from python-openstackclient)
Downloading oslo.i18n-3.15.0-py2.py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 624kB/s
Collecting cliff>=2.3.0 (from python-openstackclient)
Downloading cliff-2.5.0-py2-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 725kB/s
Collecting Babel>=2.3.4 (from python-openstackclient)
Downloading Babel-2.4.0-py2.py3-none-any.whl (6.8MB)
100% |████████████████████████████████| 6.8MB 68kB/s
Collecting python-keystoneclient>=3.8.0 (from python-openstackclient)
Downloading python_keystoneclient-3.10.0-py2.py3-none-any.whl (369kB)
100% |████████████████████████████████| 378kB 206kB/s
Collecting oslo.utils>=3.20.0 (from python-openstackclient)
Downloading oslo.utils-3.25.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 288kB/s
Collecting openstacksdk>=0.9.13 (from python-openstackclient)
Downloading openstacksdk-0.9.14-py2.py3-none-any.whl (582kB)
100% |████████████████████████████████| 583kB 230kB/s
Collecting pbr>=2.0.0 (from python-openstackclient)
Downloading pbr-2.1.0-py2.py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 252kB/s
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from python-openstackclient)
Collecting keystoneauth1>=2.18.0 (from python-openstackclient)
Downloading keystoneauth1-2.19.0-py2.py3-none-any.whl (244kB)
100% |████████████████████████████████| 245kB 267kB/s
Collecting python-cinderclient!=1.7.0,!=1.7.1,>=1.6.0 (from python-openstackclient)
Downloading python_cinderclient-2.0.1-py2.py3-none-any.whl (298kB)
100% |████████████████████████████████| 307kB 327kB/s
Collecting osc-lib>=1.2.0 (from python-openstackclient)
Downloading osc_lib-1.3.0-py2-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 118kB/s
Collecting python-novaclient>=7.1.0 (from python-openstackclient)
Downloading python_novaclient-8.0.0-py2.py3-none-any.whl (297kB)
100% |████████████████████████████████| 307kB 214kB/s
Collecting python-glanceclient>=2.5.0 (from python-openstackclient)
Downloading python_glanceclient-2.6.0-py2.py3-none-any.whl (175kB)
100% |████████████████████████████████| 184kB 205kB/s
Collecting PyYAML>=3.10.0 (from cliff>=2.3.0->python-openstackclient)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 237kB/s
Collecting unicodecsv>=0.8.0; python_version < “3.0” (from cliff>=2.3.0->python-openstackclient)
Downloading unicodecsv-0.14.1.tar.gz
Requirement already satisfied: pyparsing>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from cliff>=2.3.0->python-openstackclient)
Collecting PrettyTable<0.8,>=0.7.1 (from cliff>=2.3.0->python-openstackclient)
Downloading prettytable-0.7.2.zip
Collecting cmd2>=0.6.7 (from cliff>=2.3.0->python-openstackclient)
Downloading cmd2-0.7.0.tar.gz (371kB)
100% |████████████████████████████████| 378kB 266kB/s
Collecting stevedore>=1.20.0 (from cliff>=2.3.0->python-openstackclient)
Downloading stevedore-1.21.0-py2.py3-none-any.whl
Collecting pytz>=0a (from Babel>=2.3.4->python-openstackclient)
Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
100% |████████████████████████████████| 491kB 288kB/s
Collecting oslo.config!=3.18.0,>=3.14.0 (from python-keystoneclient>=3.8.0->python-openstackclient)
Downloading oslo.config-3.24.0-py2.py3-none-any.whl (103kB)
100% |████████████████████████████████| 112kB 375kB/s
Collecting positional>=1.1.1 (from python-keystoneclient>=3.8.0->python-openstackclient)
Downloading positional-1.1.1.tar.gz
Collecting debtcollector>=1.2.0 (from python-keystoneclient>=3.8.0->python-openstackclient)
Downloading debtcollector-1.13.0-py2.py3-none-any.whl
Collecting oslo.serialization>=1.10.0 (from python-keystoneclient>=3.8.0->python-openstackclient)
Downloading oslo.serialization-2.18.0-py2.py3-none-any.whl
Collecting requests!=2.12.2,>=2.10.0 (from python-keystoneclient>=3.8.0->python-openstackclient)
Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
100% |████████████████████████████████| 593kB 146kB/s
Collecting monotonic>=0.6 (from oslo.utils>=3.20.0->python-openstackclient)
Downloading monotonic-1.3-py2.py3-none-any.whl
Collecting funcsigs>=0.4; python_version == “2.7” or python_version == “2.6” (from oslo.utils>=3.20.0->python-openstackclient)
Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting netifaces>=0.10.4 (from oslo.utils>=3.20.0->python-openstackclient)
Downloading netifaces-0.10.5.tar.gz
Collecting iso8601>=0.1.11 (from oslo.utils>=3.20.0->python-openstackclient)
Downloading iso8601-0.1.11-py2.py3-none-any.whl
Collecting netaddr!=0.7.16,>=0.7.13 (from oslo.utils>=3.20.0->python-openstackclient)
Downloading netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)
100% |████████████████████████████████| 1.6MB 160kB/s
Collecting deprecation>=1.0 (from openstacksdk>=0.9.13->python-openstackclient)
Downloading deprecation-1.0.tar.gz
Collecting os-client-config>=1.22.0 (from openstacksdk>=0.9.13->python-openstackclient)
Downloading os_client_config-1.26.0-py2.py3-none-any.whl (60kB)
100% |████████████████████████████████| 61kB 278kB/s
Collecting simplejson>=2.2.0 (from python-cinderclient!=1.7.0,!=1.7.1,>=1.6.0->python-openstackclient)
Downloading simplejson-3.10.0.tar.gz (77kB)
100% |████████████████████████████████| 81kB 139kB/s
Collecting wrapt>=1.7.0 (from python-glanceclient>=2.5.0->python-openstackclient)
Downloading wrapt-1.10.10.tar.gz
Collecting warlock!=1.3.0,<2,>=1.0.1 (from python-glanceclient>=2.5.0->python-openstackclient)
Downloading warlock-1.2.0.tar.gz
Collecting rfc3986>=0.3.1 (from oslo.config!=3.18.0,>=3.14.0->python-keystoneclient>=3.8.0->python-openstackclient)
Downloading rfc3986-0.4.1-py2.py3-none-any.whl
Collecting msgpack-python>=0.4.0 (from oslo.serialization>=1.10.0->python-keystoneclient>=3.8.0->python-openstackclient)
Downloading msgpack-python-0.4.8.tar.gz (113kB)
100% |████████████████████████████████| 122kB 275kB/s
Collecting requestsexceptions>=1.1.1 (from os-client-config>=1.22.0->openstacksdk>=0.9.13->python-openstackclient)
Downloading requestsexceptions-1.2.0-py2.py3-none-any.whl
Requirement already satisfied: appdirs>=1.3.0 in /usr/local/lib/python2.7/dist-packages (from os-client-config>=1.22.0->openstacksdk>=0.9.13->python-openstackclient)
Collecting jsonschema<3,>=0.7 (from warlock!=1.3.0,<2,>=1.0.1->python-glanceclient>=2.5.0->python-openstackclient)
Downloading jsonschema-2.6.0-py2.py3-none-any.whl
Collecting jsonpatch<2,>=0.10 (from warlock!=1.3.0,<2,>=1.0.1->python-glanceclient>=2.5.0->python-openstackclient)
Downloading jsonpatch-1.15-py2.py3-none-any.whl
Collecting functools32; python_version == “2.7” (from jsonschema<3,>=0.7->warlock!=1.3.0,<2,>=1.0.1->python-glanceclient>=2.5.0->python-openstackclient)
Downloading functools32-3.2.3-2.zip
Collecting jsonpointer>=1.9 (from jsonpatch<2,>=0.10->warlock!=1.3.0,<2,>=1.0.1->python-glanceclient>=2.5.0->python-openstackclient)
Downloading jsonpointer-1.10-py2-none-any.whl
Building wheels for collected packages: PyYAML, unicodecsv, PrettyTable, cmd2, positional, netifaces, deprecation, simplejson, wrapt, warlock, msgpack-python, functools32
Running setup.py bdist_wheel for PyYAML … done
Stored in directory: /home/joseph/.cache/pip/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc
Running setup.py bdist_wheel for unicodecsv … done
Stored in directory: /home/joseph/.cache/pip/wheels/97/e2/16/219fa93b83edaff912b6805cfa19d0597e21f8d353f3e2d22f
Running setup.py bdist_wheel for PrettyTable … done
Stored in directory: /home/joseph/.cache/pip/wheels/b6/90/7b/1c22b89217d0eba6d5f406e562365ebee804f0d4595b2bdbcd
Running setup.py bdist_wheel for cmd2 … done
Stored in directory: /home/joseph/.cache/pip/wheels/e1/c3/c5/7048dcd413895b9587c98bc7c8cf8bf5d3d93750d7c97c1490
Running setup.py bdist_wheel for positional … done
Stored in directory: /home/joseph/.cache/pip/wheels/f8/a3/e7/0704b4f6ee0128f17be800e4895e75a1d00c291ae4d9e8c412
Running setup.py bdist_wheel for netifaces … done
Stored in directory: /home/joseph/.cache/pip/wheels/9f/40/bd/1f8e0f83e36399900d81bebfd7ece579931ced3a5d9383284b
Running setup.py bdist_wheel for deprecation … done
Stored in directory: /home/joseph/.cache/pip/wheels/06/ec/c3/a7d655dffe65d365d76c5ea42b0ef7e390c3ed8758f1b8c8dd
Running setup.py bdist_wheel for simplejson … done
Stored in directory: /home/joseph/.cache/pip/wheels/43/c5/ef/edcebbb19becffd2ba75bf219afdbb4ca85198b2d909f1b31b
Running setup.py bdist_wheel for wrapt … done
Stored in directory: /home/joseph/.cache/pip/wheels/22/a5/9f/ca577d0e7b917b681fdbb7b36a41a8a9ae76fb7fec146438dc
Running setup.py bdist_wheel for warlock … done
Stored in directory: /home/joseph/.cache/pip/wheels/79/ca/4d/7edcaf55cbc1b8a7a013b88e624bcbfe7b7dd413c332e9f3d4
Running setup.py bdist_wheel for msgpack-python … done
Stored in directory: /home/joseph/.cache/pip/wheels/2c/e7/e7/9031652a69d594665c5ca25e41d0fb3faa024e730b590e4402
Running setup.py bdist_wheel for functools32 … done
Stored in directory: /home/joseph/.cache/pip/wheels/3c/d0/09/cd78d0ff4d6cfecfbd730782a7815a4571cd2cd4d2ed6e69d9
Successfully built PyYAML unicodecsv PrettyTable cmd2 positional netifaces deprecation simplejson wrapt warlock msgpack-python functools32
Installing collected packages: pytz, Babel, pbr, oslo.i18n, PyYAML, unicodecsv, PrettyTable, cmd2, stevedore, cliff, rfc3986, wrapt, funcsigs, debtcollector, netaddr, oslo.config, positional, requests, iso8601, keystoneauth1, msgpack-python, monotonic, netifaces, oslo.utils, oslo.serialization, python-keystoneclient, deprecation, requestsexceptions, os-client-config, openstacksdk, simplejson, python-cinderclient, osc-lib, python-novaclient, functools32, jsonschema, jsonpointer, jsonpatch, warlock, python-glanceclient, python-openstackclient
Exception:
Traceback (most recent call last):
File “/home/joseph/.local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/home/joseph/.local/lib/python2.7/site-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/home/joseph/.local/lib/python2.7/site-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/home/joseph/.local/lib/python2.7/site-packages/pip/req/req_install.py”, line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/home/joseph/.local/lib/python2.7/site-packages/pip/req/req_install.py”, line 1064, in move_wheel_files
isolated=self.isolated,
File “/home/joseph/.local/lib/python2.7/site-packages/pip/wheel.py”, line 345, in move_wheel_files
clobber(source, lib_dir, True)
File “/home/joseph/.local/lib/python2.7/site-packages/pip/wheel.py”, line 316, in clobber
ensure_dir(destdir)
File “/home/joseph/.local/lib/python2.7/site-packages/pip/utils/init.py”, line 83, in ensure_dir
os.makedirs(path)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pytz-2017.2.dist-info’
joseph@joseph-HP-Notebook:~$

This was another concern:

joseph@joseph-HP-Notebook:~$ pip install python-PROJECTclient
Collecting python-PROJECTclient
Could not find a version that satisfies the requirement python-PROJECTclient (from versions: )
No matching distribution found for python-PROJECTclient
joseph@joseph-HP-Notebook:~$

Any one that got through all this, it is most appreciated.

Joseph O’Connor


#2

You’re seeing this error because you’re trying to install packages into the system-level python installation and doing so requires root access.

You can execute the same command with sudo to install it.

The documentation denotes the root requirement with the convention of using the “#” as the prompt while a non-root user is denoted by a “$”.

One other thing I want to mention is that the python-openstackclient is replacing the the python-PROJECTclient. That is mentioned in this OpenStack installation doc but easy to miss since it’s not called out/highlighted.