Welcome to the Linux Foundation Forum!

Errors on devstack install

karakhan
karakhan Posts: 2

I cant install dev install on any lab. Not running on labs.



My problem start on lasb 2.1

This this my track  lab

ubuntu@devstack-cc:~$ sudo  sudo apt-get update && sudo apt-get install git -y -----> OK!

ubuntu@devstack-cc:~$ git clone https://git.openstack.org/openstack-dev/devstack -b s

table/newton

Cloning into 'devstack'...

remote: Counting objects: 40296, done.

remote: Compressing objects: 100% (19852/19852), done.

remote: Total 40296 (delta 28657), reused 31001 (delta 19826)

Receiving objects: 100% (40296/40296), 8.35 MiB | 8.19 MiB/s, done.

Resolving deltas: 100% (28657/28657), done.

Checking connectivity... done.

ubuntu@devstack-cc:~$ cd devstack/

ubuntu@devstack-cc:~/devstack$

ubuntu@devstack-cc:~/devstack$ vi local.conf

[[local|localrc]]

HOST_IP=192.168.97.1

FLAT_INTERFACE=eth2

MULTI_HOST=1

LOGFILE=/opt/stack/logs/stack.sh.log

ADMIN_PASSWORD=openstack

MYSQL_PASSWORD=DB-secret

RABBIT_PASSWORD=MQ-secret

SERVICE_PASSWORD=SERVICE-secret

SERVICE_TOKEN=ALongStringUsuallyHere

enable_service rabbit mysql key

ubuntu@devstack-cc:~/devstack$ ./stack.sh

....

2017-10-31 19:36:23.182 | error: pathspec 'stable/newton' did not match any file(s) k

nown to git.

2017-10-31 19:36:23.188 | +functions-common:git_clone:1              exit_trap

2017-10-31 19:36:23.193 | +./stack.sh:exit_trap:494                  local r=1

2017-10-31 19:36:23.204 | ++./stack.sh:exit_trap:495                  jobs -p

2017-10-31 19:36:23.211 | +./stack.sh:exit_trap:495                  jobs=

2017-10-31 19:36:23.216 | +./stack.sh:exit_trap:498                  [[ -n '' ]]

2017-10-31 19:36:23.222 | +./stack.sh:exit_trap:504                  kill_spinner

2017-10-31 19:36:23.228 | +./stack.sh:kill_spinner:390               '[' '!' -z '' ']

'

2017-10-31 19:36:23.233 | +./stack.sh:exit_trap:506                  [[ 1 -ne 0 ]]

2017-10-31 19:36:23.239 | +./stack.sh:exit_trap:507                  echo 'Error on e

xit'

2017-10-31 19:36:23.239 | Error on exit

2017-10-31 19:36:23.245 | +./stack.sh:exit_trap:508                  generate-subunit

 1509478336 247 fail

2017-10-31 19:36:23.487 | +./stack.sh:exit_trap:509                  [[ -z /opt/stack

/logs ]]

2017-10-31 19:36:23.496 | +./stack.sh:exit_trap:512                  /home/ubuntu/dev

stack/tools/worlddump.py -d /opt/stack/logs

2017-10-31 19:36:24.010 | +./stack.sh:exit_trap:518                  exit 1

 

...............

I dont know what this error i fallow the instructions i try with another branch (ocata, pike) and have a problems too.

Kind regards

Comments

  • serewicz
    serewicz Posts: 1,000
    edited October 2017

    Hello,

    I can see the commands you have typed in.  One issue may be the interface you are typing into the local.conf file. Amazon recently changed the names of the interfaces. There is an errata PDF which I beleive references this and a couple other issues.  Try it with 


    [[local|localrc]] HOST_IP=192.168.97.1 FLAT_INTERFACE=ens3 #<<<<<<---This line here MULTI_HOST=1 LOGFILE=/opt/stack/logs/stack.sh.log ADMIN_PASSWORD=openstack MYSQL_PASSWORD=DB-secret RABBIT_PASSWORD=MQ-secret SERVICE_PASSWORD=SERVICE-secret SERVICE_TOKEN=ALongStringUsuallyHere enable_service rabbit mysql key

    Also, it would be helpful if you could post an error code. Whereever the ./stack.sh script fails, usually the previous 10 or 20 lines of output will indicate where the issue may be.

    Regards,

     

  • karakhan
    karakhan Posts: 2
    edited October 2017

    I try the ens3 and ocata release and works fine!!!

    Thanks!

  • The stack.sh stops here with the following error:


    error: pathspec 'stable/newton' did not match any file(s) known to git. 2017-11-02 13:38:39.525 | +functions-common:git_clone:1 exit_trap 2017-11-02 13:38:39.530 | +./stack.sh:exit_trap:494 local r=1 2017-11-02 13:38:39.536 | ++./stack.sh:exit_trap:495 jobs -p 2017-11-02 13:38:39.542 | +./stack.sh:exit_trap:495 jobs= 2017-11-02 13:38:39.547 | +./stack.sh:exit_trap:498 [[ -n '' ]] 2017-11-02 13:38:39.553 | +./stack.sh:exit_trap:504 kill_spinner 2017-11-02 13:38:39.559 | +./stack.sh:kill_spinner:390 '[' '!' -z '' ']' 2017-11-02 13:38:39.564 | +./stack.sh:exit_trap:506 [[ 1 -ne 0 ]] 2017-11-02 13:38:39.570 | +./stack.sh:exit_trap:507 echo 'Error on exit' 2017-11-02 13:38:39.570 | Error on exit 2017-11-02 13:38:39.575 | +./stack.sh:exit_trap:508 generate-subunit 1509629646 273 fail 2017-11-02 13:38:39.809 | +./stack.sh:exit_trap:509 [[ -z /opt/stack/logs ]] 2017-11-02 13:38:39.819 | +./stack.sh:exit_trap:512 /home/ubuntu/devstack/tools/worlddump.py -d /opt/stack/logs 2017-11-02 13:38:40.192 | +./stack.sh:exit_trap:518 exit 1 ubuntu@devstack-cc:~/devstack$

    the local.conf contains serevicz's comment from earlier. However the error seems to be 

  • seems like it's erroring out on different things:


    2017-11-02 13:52:03.486 | +lib/keystone:configure_keystone:204 cp -p /opt/stack/keystone/etc/policy.json /etc/keystone 2017-11-02 13:52:03.487 | cp: cannot stat '/opt/stack/keystone/etc/policy.json': No such file or directory

     

  • serewicz
    serewicz Posts: 1,000

    Thanks soosgyul,

    That helps a lot. Seems the policy.json file is no longer used. It should not effect an older version, but it does. Seems the new file to use is /etc/policy.v3cloudsample.json.   I will try to figure out the steps to get this to work.

    Regards,

     

  • serewicz
    serewicz Posts: 1,000

    I have not tested all the steps, but the simple fix, so far, is to use the pike release. so the clone command ends with  -b stable/pike

    The BUI looks a little different, but the steps are mostly the same. I will continue to look into the differences and update the errata file. 

    Regards,

     

  • Using "Pike" has not helped me -> I'm [still] unable to install devstack in Lab#2 because of this failure:



    rack conntrackd keepalived libpcre3-dev dstat python-psutil

    ++functions-common:apt_get:1069             local xtrace result

    +++functions-common:apt_get:1070             set +o

    +++functions-common:apt_get:1070             grep xtrace

    ++functions-common:apt_get:1070             xtrace='set -o xtrace'

    ++functions-common:apt_get:1071             set +o xtrace

    ++functions-common:apt_get:1082             sudo DEBIAN_FRONTEND=noninteractive http_

    proxy= https_proxy= no_proxy= apt-get --option Dpkg::Options::=--force-confold --assu

    me-yes install apache2 apache2-dev bc bridge-utils bsdmainutils curl g++ gcc gettext

    git graphviz iputils-ping libapache2-mod-proxy-uwsgi libffi-dev libjpeg-dev libmysqlc

    lient-dev libpq-dev libssl-dev libsystemd-dev libxml2-dev libxslt1-dev libyaml-dev ls

    of openssh-server openssl pkg-config psmisc python2.7 python-dev python-gdbm screen t

    ar tcpdump unzip uuid-runtime wget wget zlib1g-dev libkrb5-dev libldap2-dev libsasl2-

    dev memcached python-mysqldb sqlite3 conntrack curl dnsmasq-base dnsmasq-utils ebtabl

    es gawk genisoimage iptables iputils-arping kpartx libjs-jquery-tablesorter libmysqlc

    lient-dev parted pm-utils python-mysqldb socat sqlite3 sudo vlan cryptsetup genisoima

    ge gir1.2-libosinfo-1.0 netcat-openbsd open-iscsi qemu-utils sg3-utils sysfsutils lvm

    2 open-iscsi qemu-utils thin-provisioning-tools acl dnsmasq-base ebtables haproxy ipt

    ables iputils-arping iputils-ping libmysqlclient-dev postgresql-server-dev-all python

    -mysqldb sqlite3 sudo vlan ipset conntrack conntrackd keepalived libpcre3-dev dstat p

    ython-psutil

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    E: Unable to locate package libsystemd-dev

    +functions-common:apt_get:1                exit_trap

    +./stack.sh:exit_trap:521                  local r=100

    ++./stack.sh:exit_trap:522                  jobs -p

    +./stack.sh:exit_trap:522                  jobs=

    +./stack.sh:exit_trap:525                  [[ -n '' ]]

    +./stack.sh:exit_trap:531                  '[' -f '' ']'

    +./stack.sh:exit_trap:536                  kill_spinner

    +./stack.sh:kill_spinner:417               '[' '!' -z '' ']'

    +./stack.sh:exit_trap:538                  [[ 100 -ne 0 ]]

    +./stack.sh:exit_trap:539                  echo 'Error on exit'

    Error on exit

    +./stack.sh:exit_trap:540                  generate-subunit 1509725507 42 fail

    ./stack.sh: line 540: generate-subunit: command not found

    ubuntu@devstack-cc:~/devstack$

     

  • It's just typical...

    About 5-6 months ago, I finally had some time, to do this course, but there was this big issue with the whole course and it's dependency on the devstack repo, where we could not run it properly. Then time passed, and about a week ago sat down to restart the whole thing. Of course there is some issue with the repos, and we can't run the labs.

    Why can't the whole devstack and all it's depencecies be forked just for this course? And update the labs and this fork on a regular basis, but without any hickups and delays and negative comments from me? :) 

    Is there an ETA of when I'll be access my course? My time will run out in December.

  • First of all, OpenStack Pike doesn't support Ubuntu 14.04 trusty anymore and to allow stack.sh to execute on this OS you have to "FORCE" it from the local.conf. Unfortunately, even after doing so, it seems that multiple packages have changed their names from Ubuntu 14.04 to 16.04 and thus fixing it all manually doesn't really make sens (I have tried that and gave up after a few of them).

    Upgrading the OS is also not an option, after updating it to 16.04 and rebooting the machine it doesn't come up at all.

    I am in the same situation as soosgyul, I had first attempt to go through the course a few months ago and had to skip a few labs due to issue with OpenStack Liberty and came back to it now hoping that with Newton everything will work just fine, but it doesn't seem so :/ I fully agree with soosgyul's comment below that you need to somehow solve the issue with constant issues with the installation, although I can imagine that it has to be a Sisyphean task.

  • soosgyul
    soosgyul Posts: 15
    edited November 2017

    on this issue?

  • neeraja1992
    neeraja1992 Posts: 4
    edited December 2017

    This is the output that shows the error. Kindly help.

    I have done the same install, clean and try again, but to no good output.



    2017-12-15 02:17:44.397 | Processing triggers for ufw (0.35-0ubuntu2) ...

    2017-12-15 02:17:44.508 | WARN: Duplicate profile 'OpenSSH', using last found

    2017-12-15 02:17:46.565 | +functions-common:apt_get:1118             result=0

    2017-12-15 02:17:46.574 | +functions-common:apt_get:1121             time_stop apt-get

    2017-12-15 02:17:46.582 | +functions-common:time_stop:2385           local name

    2017-12-15 02:17:46.590 | +functions-common:time_stop:2386           local end_time

    2017-12-15 02:17:46.599 | +functions-common:time_stop:2387           local elapsed_time

    2017-12-15 02:17:46.607 | +functions-common:time_stop:2388           local total

    2017-12-15 02:17:46.615 | +functions-common:time_stop:2389           local start_time

    2017-12-15 02:17:46.623 | +functions-common:time_stop:2391           name=apt-get

    2017-12-15 02:17:46.631 | +functions-common:time_stop:2392           start_time=1513304254

    2017-12-15 02:17:46.639 | +functions-common:time_stop:2394           [[ -z 1513304254 ]]

    2017-12-15 02:17:46.650 | ++functions-common:time_stop:2397           date +%s

    2017-12-15 02:17:46.660 | +functions-common:time_stop:2397           end_time=1513304266

    2017-12-15 02:17:46.668 | +functions-common:time_stop:2398           elapsed_time=12

    2017-12-15 02:17:46.675 | +functions-common:time_stop:2399           total=34

    2017-12-15 02:17:46.683 | +functions-common:time_stop:2401           _TIME_START[$name]=

    2017-12-15 02:17:46.690 | +functions-common:time_stop:2402           _TIME_TOTAL[$name]=46

    2017-12-15 02:17:46.698 | +functions-common:apt_get:1122             return 0

    2017-12-15 02:17:46.705 | +lib/apache:install_apache_wsgi:78         enable_apache_mod wsgi

    2017-12-15 02:17:46.713 | +lib/apache:enable_apache_mod:48           local mod=wsgi

    2017-12-15 02:17:46.721 | +lib/apache:enable_apache_mod:50           is_ubuntu

    2017-12-15 02:17:46.729 | +functions-common:is_ubuntu:466            [[ -z deb ]]

    2017-12-15 02:17:46.737 | +functions-common:is_ubuntu:469            '[' deb = deb ']'

    2017-12-15 02:17:46.745 | +lib/apache:enable_apache_mod:51           a2query -m wsgi

    2017-12-15 02:17:46.794 | wsgi (enabled by maintainer script)

    2017-12-15 02:17:46.803 | +lib/apache:install_apache_wsgi:83         sudo a2enmod version

    2017-12-15 02:17:46.862 | ERROR: Module version does not exist!

    2017-12-15 02:17:46.873 | +lib/apache:install_apache_wsgi:83         true

    2017-12-15 02:17:46.880 | +lib/keystone:install_keystone:571         is_ssl_enabled_service key

    2017-12-15 02:17:46.887 | +lib/tls:is_ssl_enabled_service:371        local services=key

    2017-12-15 02:17:46.894 | +lib/tls:is_ssl_enabled_service:372        local service=

    2017-12-15 02:17:46.901 | +lib/tls:is_ssl_enabled_service:373        '[' False == False ']'

    2017-12-15 02:17:46.908 | +lib/tls:is_ssl_enabled_service:374        return 1

    2017-12-15 02:17:46.915 | +lib/stack:stack_install_service:33        [[ False = True ]]

    2017-12-15 02:17:46.923 | +./stack.sh:main:825                       configure_keystone

    2017-12-15 02:17:46.932 | +lib/keystone:configure_keystone:200       sudo install -d -o ubuntu /et

    c/keystone

    2017-12-15 02:17:46.951 | +lib/keystone:configure_keystone:202       [[ /etc/keystone != \/\o\p\t\

    /\s\t\a\c\k\/\k\e\y\s\t\o\n\e\/\e\t\c ]]

    2017-12-15 02:17:46.960 | +lib/keystone:configure_keystone:203       install -m 600 /opt/stack/key

    stone/etc/keystone.conf.sample /etc/keystone/keystone.conf

    2017-12-15 02:17:46.970 | +lib/keystone:configure_keystone:204       cp -p /opt/stack/keystone/etc

    /policy.json /etc/keystone

    2017-12-15 02:17:46.973 | cp: cannot stat '/opt/stack/keystone/etc/policy.json': No such file or d

    irectory

    2017-12-15 02:17:46.983 | +lib/keystone:configure_keystone:1         exit_trap

    2017-12-15 02:17:46.992 | +./stack.sh:exit_trap:494                  local r=1

    2017-12-15 02:17:47.002 | ++./stack.sh:exit_trap:495                  jobs -p

    2017-12-15 02:17:47.012 | +./stack.sh:exit_trap:495                  jobs=

    2017-12-15 02:17:47.021 | +./stack.sh:exit_trap:498                  [[ -n '' ]]

    2017-12-15 02:17:47.030 | +./stack.sh:exit_trap:504                  kill_spinner

    2017-12-15 02:17:47.039 | +./stack.sh:kill_spinner:390               '[' '!' -z '' ']'

    2017-12-15 02:17:47.047 | +./stack.sh:exit_trap:506                  [[ 1 -ne 0 ]]

    2017-12-15 02:17:47.056 | +./stack.sh:exit_trap:507                  echo 'Error on exit'

    2017-12-15 02:17:47.057 | Error on exit

    2017-12-15 02:17:47.066 | +./stack.sh:exit_trap:508                  generate-subunit 1513304015 2

    52 fail

    2017-12-15 02:17:47.396 | +./stack.sh:exit_trap:509                  [[ -z /opt/stack/logs ]]

    2017-12-15 02:17:47.407 | +./stack.sh:exit_trap:512                  /home/ubuntu/devstack/tools/w

    orlddump.py -d /opt/stack/logs

    2017-12-15 02:17:47.718 | +./stack.sh:exit_trap:518                  exit 1

    ubuntu@devstack-cc:~/devstack$

     

Categories

Upcoming Training