Skip to content

Instantly share code, notes, and snippets.

@spotz
spotz / badcli.txt
Created July 13, 2018 14:26
ui breaks CLI
root@zunui:~# cat adminrc
#!/usr/bin/env bash
# To use an OpenStack cloud you need to authenticate against the Identity
# service named keystone, which returns a **Token** and **Service Catalog**.
# The catalog contains the endpoints for all services the user/tenant has
# access to - such as Compute, Image Service, Identity, Object Storage, Block
# Storage, and Networking (code-named nova, glance, keystone, swift,
# cinder, and neutron).
#
# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other
@spotz
spotz / reqs.txt
Created July 13, 2018 03:49
failure from kuryr-libnetwork requirements
This file has been truncated, but you can view the full file.
stack@zunui:~/devstack$ ./stack.sh
+ unset GREP_OPTIONS
+ unset LANG
+ unset LANGUAGE
+ LC_ALL=en_US.utf8
+ export LC_ALL
+ umask 022
+ PATH=/home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin
+++ dirname ./stack.sh
++ cd .
@spotz
spotz / local.conf
Created July 13, 2018 03:36
local.conf for zun install
stack@zunui:~/devstack$ cat local.conf
[[local|localrc]]
HOST_IP=X.X.X.X # change this to your IP address
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_TOKEN=openstack
SERVICE_PASSWORD=openstack
ADMIN_PASSWORD=openstack
#PIP_UPGRADE=True
2017-09-28 23:56:54.739 | Requirement already up-to-date: pip<8 in /usr/local/lib/python2.7/dist-packages (from -c /home/stack/devstack/tools/cap-pip.txt (line 1))
2017-09-28 23:56:55.531 | You are using pip version 7.1.2, however version 9.0.1 is available.
2017-09-28 23:56:55.531 | You should consider upgrading via the 'pip install --upgrade pip' command.
2017-09-28 23:56:55.557 | + [[ -n '' ]]
2017-09-28 23:56:55.557 | + pip_install -U setuptools
2017-09-28 23:56:55.581 | [ERROR] /home/stack/devstack/inc/python:36 Unable to find pip; cannot continue
2017-09-28 23:56:57.271 | sudo: unknown group: '
2017-09-28 23:56:57.271 | sudo: unable to initialize policy plugin
2017-09-28 23:56:57.272 | ++ err_trap
2017-09-28 23:56:57.272 | ++ local r=1
2017-09-28 23:23:16.877 | + exec
2017-09-28 23:23:16.878 | + echo_summary 'stack.sh log /opt/stack/logs/stack.sh.log.2017-09-28-232316'
2017-09-28 23:23:16.878 | + [[ -t 3 ]]
2017-09-28 23:23:16.878 | + echo -e stack.sh log /opt/stack/logs/stack.sh.log.2017-09-28-232316
2017-09-28 23:23:16.878 | + ln -sf /opt/stack/logs/stack.sh.log.2017-09-28-232316 /opt/stack/logs/stack.sh.log
2017-09-28 23:23:16.878 | ++ /home/stack/devstack/tools/outfilter.py -o /opt/stack/logs/stack.sh.log.2017-09-28-232316.summary.2017-09-28-232316
2017-09-28 23:23:16.878 | + ln -sf /opt/stack/logs/stack.sh.log.2017-09-28-232316.summary.2017-09-28-232316 /opt/stack/logs/stack.sh.log.summary
2017-09-28 23:23:16.878 | + [[ -n /opt/stack/logs/screen ]]
2017-09-28 23:23:16.878 | + [[ -d /opt/stack/logs/screen ]]
2017-09-28 23:23:16.878 | + find /opt/stack/logs/screen -maxdepth 1 -name 'screen-*.log' -mtime +7 -exec rm '{}' ';'
/root/coa-build.sh: line 16: packstack: command not found
^C
[root@centos7-rdo-newton-base18092017-201528 ~]# yum repolist -v
Loading "fastestmirror" plugin
Loading "langpacks" plugin
Adding en_US.UTF-8 to language list
Config time: 0.009
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
* base: mirror.team-cymru.org
[amy@instance-1 ~]$ sudo packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170425-191525-4Dak8T/openstack-setup.log
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ ERROR ]
export OS_USERNAME=placement
export OS_PASSWORD=linuxacademy123
export OS_PROJECT_NAME=service
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
[DEFAULT]
#
# From nova.conf
#
# DEPRECATED:
# When returning instance metadata, this is the class that is used
# for getting vendor metadata when that class isn't specified in the individual
# request. The value should be the full dot-separated path to the class to use.
MariaDB [nova_api]> select * from cell_mappings;
+---------------------+------------+----+--------------------------------------+-------+----------------------------------------+------------------------------------------------------------+
| created_at | updated_at | id | uuid | name | transport_url | database_connection |
+---------------------+------------+----+--------------------------------------+-------+----------------------------------------+------------------------------------------------------------+
| 2017-02-27 20:14:18 | NULL | 1 | 00000000-0000-0000-0000-000000000000 | cell0 | none:/// | mysql+pymysql://nova:linuxacademy123@controller/nova_cell0 |
| 2017-02-27 20:16:04 | NULL | 2 | 143df967-eb22-4d2c-baff-bfc2538816fd | cell1 | rabbit://openstack:rabbitmq@controller | mysql+pymysql://nova:linuxacademy123@controller/nova |
+-------------------