Errors on devstack install
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
-
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,
0 -
I try the ens3 and ocata release and works fine!!!
Thanks!
0 -
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
0 -
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
0 -
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,
0 -
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,
0 -
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$0 -
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.
0 -
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.
0 -
on this issue?
0 -
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$0
Categories
- All Categories
- 217 LFX Mentorship
- 217 LFX Mentorship: Linux Kernel
- 788 Linux Foundation IT Professional Programs
- 352 Cloud Engineer IT Professional Program
- 177 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 146 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.1K Training Courses
- 46 LFC110 Class Forum - Discontinued
- 70 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 36 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 693 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 144 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- 4 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 25 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 130 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 48 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 150 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 795 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 102 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 370 Off Topic
- 114 Introductions
- 173 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 96 All In Program
- 96 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)