0% found this document useful (0 votes)
110 views10 pages

Openstack Install

1) The document contains configuration files and commands for deploying OpenStack services including Nova, Cinder, Keystone, and Swift using DevStack. 2) Key details provided include IP addresses, passwords, enabled services, and commands to clone DevStack, create volumes, and list volumes, images, availability zones and OpenStack services. 3) The configuration files specify parameters for the various OpenStack services including authentication details, database passwords, service URLs, and logging configuration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views10 pages

Openstack Install

1) The document contains configuration files and commands for deploying OpenStack services including Nova, Cinder, Keystone, and Swift using DevStack. 2) Key details provided include IP addresses, passwords, enabled services, and commands to clone DevStack, create volumes, and list volumes, images, availability zones and OpenStack services. 3) The configuration files specify parameters for the various OpenStack services including authentication details, database passwords, service URLs, and logging configuration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 10

# default: off

# description: An internal xinetd service, listing active services.

[keystone_authtoken]
memcached_servers = localhost:11211
signing_dir = /var/cache/nova
cafile = /opt/stack/data/ca-bundle.pem
project_domain_name = Default
project_name = service
user_domain_name = Default
password = Oracle!23
username = nova
auth_url = http://10.0.0.7/identity
auth_type = password

chosen: ssh-rsa
AAAAB3NzaC1yc2EAAAABJQAAAQEAh47qdsKVa7DqnhSnJkhhbHwpDdB8499CN9BuCs3rBTtT4MFAkuE26kL
rBRMKoCdy6zrlAENFgzqC8vtX5rmxlb/e2q0jDY88x796N7H7fsFE0KdsUpm3ky6Wg0kvsfIzi/BC7+NEEn
tKEFeMoikbA4hks/9U07EO51OFeGWznv06ifRkWZtAHWaluL93u04ycKlaxrQu7cuXv3tV0g7WLO5F7nUoP
8Rc0INUZkRsS1lm2vE79tbm9GMBkbXnYllmEIRZ/YNYkylnccYzCpRzsk2QWwd9IdeoLUC67ty243XJA9ak
yNOQypZzEdLZsJzkLKqnDP7ReYY6KNOG4a1U6Q== rsa-key-20191001

ssh-rsa
AAAAB3NzaC1yc2EAAAABJQAAAQEAoHEHIBaD+jHdrfp0yFZoE+GARY9eMXsvynHoBubY+xqsZ/doZbhbjoi
vFQibRQkcYwVdtOeus8j2cPs/HWDcYwIqfGPvlYz0shi8XpiSO0e6AvOAPVyTD/ENxUGnrNM8E3xJwbzXu0
7nC1gURQc4C6g+fEY8qOuIxJpR6RIQesxykcQZe1cp/pBN6jShlLB8U+VNWZuQyjMCfNU7tfF4T2QvVPe8o
VM+uPDDBOp0jRZ0f8+vo7MxknCuOJJy5h5Xlad3Evifg3nQOxzhqLHRkw5t9fIJHHLOniow/8+VmGf1EGA7
ZgiazIwBp6aXe+/Ck4/HNZiCiJSqPPI1kum7NQ== rsa-key-20191016

(11:29:59 AM) [email protected]: https://console.us-phoenix-


1.oraclecloud.com
(11:30:09 AM) [email protected]: Hello_World123
(11:30:19 AM) [email protected]: [email protected]
(11:30:24 AM) [email protected]: intoraclesecurebackup

Private IP Address:10.0.0.14
Internal FQDN:Unavailable
Public IP Address:129.146.86.148

sudo useradd -s /bin/bash -d /opt/stack -m stack


echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack

Private IP Address:10.0.0.28
Internal FQDN:Unavailable
Public IP Address:129.146.80.88

git clone https://github.com/openstack-dev/devstack.git -b stable/stein devstack/

[[local|localrc]]
ADMIN_PASSWORD=oracle
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=10.0.0.7
RECLONE=yes

enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api.git


stable/stein
enable_plugin freezer https://git.openstack.org/openstack/freezer.git stable/stein
enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui.git
stable/stein

***********************************************************************************
***************************

openstack --os-region-name=RegionOne volume type create --property


volume_backend_name=lvmdriver-1 lvmdriver-1

New Host: Ubuntu Swift

ENABLED_SERVICES=key,swift,mysql
ENABLE_HTTPD_MOD_WSGI_SERVICES=False
[[local|localrc]]
HOST_IP=localhost
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

OS_IDENTITY_API_VERSION=3
OS_AUTH_URL="http://$KEYSTONE_IP/identity/v3"
OS_USERNAME=$ADMIN_USER
OS_USER_DOMAIN_ID=default
OS_PASSWORD=$ADMIN_PASSWORD
OS_PROJECT_NAME=$ADMIN_USER
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne

SERVICE_HOST=$SWIFT_IP
SWIFT_SERVICE_PROTOCOL=${SWIFT_SERVICE_PROTOCOL:-http}
SWIFT_DEFAULT_BIND_PORT=${SWIFT_DEFAULT_BIND_PORT:-8080}
# service local host is used for ring building
SWIFT_SERVICE_LOCAL_HOST=$HOST_IP
# service listen address for prox
SWIFT_SERVICE_LISTEN_ADDRESS=$HOST_IP
SWIFT_LOOPBACK_DISK_SIZE=20G
SWIFT_MAX_FILE_SIZE=5368709122
SWIFT_HASH=1234567890
IDENTITY_API_VERSION=3
SWIFT_DATA_DIR=/home/stack/data/swift

enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api.git


stable/stein
enable_plugin freezer https://git.openstack.org/openstack/freezer.git stable/stein
enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui.git
stable/stein

[nova]
region_name = RegionOne
memcached_servers = localhost:11211
signing_dir = /var/cache/cinder
cafile = /opt/stack/data/ca-bundle.pem
project_domain_name = Default
project_name = service
user_domain_name = Default
password = oracle
username = nova
auth_url = http://127.0.0.1/identity
auth_type = password

[keystone_authtoken]
memcached_servers = localhost:11211
signing_dir = /var/cache/cinder
cafile = /opt/stack/data/ca-bundle.pem
project_domain_name = Default
project_name = service
user_domain_name = Default
password = oracle
username = cinder
auth_url = http://127.0.0.1/identity
auth_type = password

[DEFAULT]
cinder_internal_tenant_user_id = 9638c21095c149beb17d745dace35b0f
cinder_internal_tenant_project_id = 6e340a0368de45ce9f4280a4964a270f
graceful_shutdown_timeout = 5
glance_api_version = 2
glance_api_servers = http://127.0.0.1/image
osapi_volume_workers = 2
logging_exception_prefix = ERROR %(name)s ^[[01;35m%(instance)s^[[00m
logging_default_format_string = %(color)s%(levelname)s %(name)s [^[[00;36m-%
(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_context_format_string = %(color)s%(levelname)s %(name)s [^[[01;36m%
(global_request_id)s %(request_id)s ^[[00;36m%(project_name)s %(user_name)s%
(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_debug_format_suffix = ^[[00;33m{{(pid=%(process)d) %(funcName)s %
(pathname)s:%(lineno)d}}^[[00m
transport_url = rabbit://stackrabbit:[email protected]:5672/
default_volume_type = lvmdriver-1
enabled_backends = lvmdriver-1
my_ip = 127.0.0.1
periodic_interval = 60
state_path = /opt/stack/data/cinder
osapi_volume_listen = 0.0.0.0
osapi_volume_extension = cinder.api.contrib.standard_extensions
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
target_helper = tgtadm
debug = True

$ export OS_USERNAME=admin
$ export OS_PASSWORD=oracle
$ export OS_PROJECT_NAME=admin
$ export OS_USER_DOMAIN_NAME=Default
$ export OS_PROJECT_DOMAIN_NAME=Default
$ export OS_AUTH_URL=http://127.0.0.1:5000/v3
$ export OS_IDENTITY_API_VERSION=3

**********************************************************************************
git clone https://git.openstack.org/openstack-dev/devstack

stack@stack:~/devstack$ openstack image list


+--------------------------------------+--------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------+--------+
| 757a208e-61d3-4fd4-a227-054249dd6e08 | cirros-0.4.0-x86_64-disk | active |
+--------------------------------------+--------------------------+--------+

stack@stack:~/devstack$ openstack availability zone list


+-----------+-------------+
| Zone Name | Zone Status |
+-----------+-------------+
| nova | available |
| nova | available |
| nova | available |
| nova | available |
+-----------+-------------+
stack@stack:~/devstack$ openstack volume create --image 8bf4dc2a-bf78-4dd1-aefa-
f3347cf638c8 --size 8 --availability-zone nova my-new-volume
Could not find resource 8bf4dc2a-bf78-4dd1-aefa-f3347cf638c8
stack@stack:~/devstack$ openstack volume create --image 757a208e-61d3-4fd4-a227-
054249dd6e08 --size 8 --availability-zone nova my-new-volume
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-11-14T10:27:03.000000 |
| description | None |
| encrypted | False |
| id | 214ffcdd-eb94-4f83-9152-216d85c5deb5 |
| multiattach | False |
| name | my-new-volume |
| properties | |
| replication_status | None |
| size | 8 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | lvmdriver-1 |
| updated_at | None |
| user_id | da689f0a39ea46d49078a52343ea45a1 |
+---------------------+--------------------------------------+

stack@stack:~/devstack$ openstack volume list


+--------------------------------------+---------------+-----------+------
+-------------+
| ID | Name | Status | Size |
Attached to |
+--------------------------------------+---------------+-----------+------
+-------------+
| 214ffcdd-eb94-4f83-9152-216d85c5deb5 | my-new-volume | available | 8 |
|
+--------------------------------------+---------------+-----------+------
+-------------+

stack@stack:~/devstack$ cinder list


+--------------------------------------+-----------+---------------+------
+-------------+----------+-------------+
| ID | Status | Name | Size | Volume
Type | Bootable | Attached to |
+--------------------------------------+-----------+---------------+------
+-------------+----------+-------------+
| 214ffcdd-eb94-4f83-9152-216d85c5deb5 | available | my-new-volume | 8 |
lvmdriver-1 | true | |
+--------------------------------------+-----------+---------------+------
+-------------+----------+-------------+

stack@stack:~/devstack$ cinder service-list


+------------------+-------------------+------+---------+-------
+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at
| Disabled Reason |
+------------------+-------------------+------+---------+-------
+----------------------------+-----------------+
| cinder-scheduler | stack | nova | enabled | up | 2019-11-
14T10:37:46.000000 | - |
| cinder-volume | stack@lvmdriver-1 | nova | enabled | up | 2019-11-
14T10:37:48.000000 | - |
+------------------+-------------------+------+---------+-------
+----------------------------+-----------------+

=========================
DevStack Component Timing
(times are in seconds)
=========================
run_process 42
test_with_retry 2
apt-get-update 15
osc 224
wait_for_service 31
git_timed 209
dbsync 39
pip_install 431
apt-get 382
-------------------------
Unaccounted time 505
=========================
Total runtime 1880

This is your host IP address: 10.0.0.27


This is your host IPv6 address: ::1
Horizon is now available at http://10.0.0.27/dashboard
Keystone is serving at http://10.0.0.27/identity/
The default users are: admin and demo
The password: oracle

WARNING:
Using lib/neutron-legacy is deprecated, and it will be removed in the future
With the removal of screen support, tail_log is deprecated and will be removed
after Queens

Services are running under systemd unit files.


For more information see:
https://docs.openstack.org/devstack/latest/systemd.html

DevStack Version: stein


Change: 4bb993c7ea830bab34f07c0190cf9a15c47ed5ff Merge "Add and switch to the newly
created opensuse-15 nodeset" into stable/stein 2019-11-12 22:48:41 +0000
OS Version: Ubuntu 18.04 bionic

../freezer-api/api-ref/source/v2/samples/clients-create-request.json

sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

[[local|localrc]]
HOST_IP=10.0.0.28
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=oracle
DATABASE_PASSWORD=oracle
RABBIT_PASSWORD=oracle
SERVICE_PASSWORD=oracle
MULTI_HOST=1

OS_IDENTITY_API_VERSION=3
OS_AUTH_URL="http://10.0.0.28/identity/v3"
OS_USERNAME=$ADMIN_USER
OS_USER_DOMAIN_ID=default
OS_PASSWORD=$ADMIN_PASSWORD
OS_PROJECT_NAME=$ADMIN_USER
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne

enable_service s-proxy s-object s-container s-account

enable_service cinder c-api c-vol c-sch c-bak

SERVICE_HOST=$HOST_IP
SWIFT_SERVICE_PROTOCOL=${SWIFT_SERVICE_PROTOCOL:-http}
SWIFT_DEFAULT_BIND_PORT=${SWIFT_DEFAULT_BIND_PORT:-8080}
# service local host is used for ring building
SWIFT_SERVICE_LOCAL_HOST=$HOST_IP
# service listen address for prox
SWIFT_SERVICE_LISTEN_ADDRESS=$HOST_IP
SWIFT_LOOPBACK_DISK_SIZE=20G
SWIFT_MAX_FILE_SIZE=5368709122
SWIFT_HASH=1234567890
IDENTITY_API_VERSION=3
SWIFT_DATA_DIR=/opt/stack/data/swift

enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api.git


stable/stein
enable_plugin freezer https://git.openstack.org/openstack/freezer.git stable/stein
enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui.git
stable/stein

This is your host IP address: 10.0.0.28


This is your host IPv6 address: ::1
Horizon is now available at http://10.0.0.28/dashboard
Keystone is serving at http://10.0.0.28/identity/
The default users are: admin and demo
The password: oracle

WARNING:
Using lib/neutron-legacy is deprecated, and it will be removed in the future
With the removal of screen support, tail_log is deprecated and will be removed
after Queens

Services are running under systemd unit files.


For more information see:
https://docs.openstack.org/devstack/latest/systemd.html

DevStack Version: stein


Change: 4bb993c7ea830bab34f07c0190cf9a15c47ed5ff Merge "Add and switch to the newly
created opensuse-15 nodeset" into stable/stein 2019-11-12 22:48:41 +0000
OS Version: Ubuntu 18.04 bionic

stack@cinder:~/devstack$ source openrc admin


WARNING: setting legacy OS_TENANT_NAME to support cli tools.
stack@cinder:~/devstack$ cinder service-list
ERROR: Policy doesn't allow volume_extension:services:index to be performed. (HTTP
403) (Request-ID: req-dcb64b80-dd70-48cc-98f7-94dfa0e5a875)
stack@cinder:~/devstack$ source openrc admin
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
stack@cinder:~/devstack$ cinder service-list
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at
| Disabled Reason |
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
| cinder-backup | cinder | nova | enabled | up | 2019-11-
25T11:12:35.000000 | - |
| cinder-scheduler | cinder | nova | enabled | up | 2019-11-
25T11:12:38.000000 | - |
| cinder-volume | cinder@lvmdriver-1 | nova | enabled | up | 2019-11-
25T11:12:39.000000 | - |
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
stack@cinder:~/devstack$ cinder service-list
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at
| Disabled Reason |
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
| cinder-backup | cinder | nova | enabled | up | 2019-11-
25T11:12:35.000000 | - |
| cinder-scheduler | cinder | nova | enabled | up | 2019-11-
25T11:12:38.000000 | - |
| cinder-volume | cinder@lvmdriver-1 | nova | enabled | up | 2019-11-
25T11:12:39.000000 | - |
+------------------+--------------------+------+---------+-------
+----------------------------+-----------------+
stack@cinder:~/devstack$ openstack image list
+--------------------------------------+--------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------+--------+
| bb81142b-b153-4be9-8b07-270b3dee5972 | cirros-0.4.0-x86_64-disk | active |
+--------------------------------------+--------------------------+--------+
stack@cinder:~/devstack$ openstack volume create --image bb81142b-b153-4be9-8b07-
270b3dee5972 --size 8 --availability-zone nova cindervol
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-11-25T11:14:51.000000 |
| description | None |
| encrypted | False |
| id | 7e1b24e6-311b-4c70-b3c6-9ac36f9ae207 |
| migration_status | None |
| multiattach | False |
| name | cindervol |
| properties | |
| replication_status | None |
| size | 8 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | lvmdriver-1 |
| updated_at | None |
| user_id | 382a633468584371a2e70c34b33a8c96 |
+---------------------+--------------------------------------+
stack@cinder:~/devstack$ cinder list
+--------------------------------------+-----------+-----------+------
+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type
| Bootable | Attached to |
+--------------------------------------+-----------+-----------+------
+-------------+----------+-------------+
| 7e1b24e6-311b-4c70-b3c6-9ac36f9ae207 | available | cindervol | 8 | lvmdriver-1
| true | |
+--------------------------------------+-----------+-----------+------
+-------------+----------+-------------+
stack@cinder:~/devstack$ cinder backup-create 7e1b24e6-311b-4c70-b3c6-9ac36f9ae207
+-----------+--------------------------------------+
| Property | Value |
+-----------+--------------------------------------+
| id | 199db2a7-8cb5-469c-8d0f-001919149d86 |
| name | None |
| volume_id | 7e1b24e6-311b-4c70-b3c6-9ac36f9ae207 |
+-----------+--------------------------------------+

stack@cinder:~/devstack$ cinder backup-list


+--------------------------------------+--------------------------------------
+-----------+------+------+--------------+---------------+
| ID | Volume ID |
Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------
+-----------+------+------+--------------+---------------+
| 199db2a7-8cb5-469c-8d0f-001919149d86 | 7e1b24e6-311b-4c70-b3c6-9ac36f9ae207 |
available | - | 8 | 164 | volumebackups |
+--------------------------------------+--------------------------------------
+-----------+------+------+--------------+---------------+

Name
shnrvm
ID
378ba9c6-9b7e-4794-8b5e-719e2f18d7d3
Description
-
Project ID
1df65e0d9abf4ecd8fc17c71b9807a29
Status
Active
Locked
False
Availability Zone
nova
Created
Nov. 26, 2019, 10:05 a.m.
Age
1 minute
Host
cinder

{
"client":
{
"hostname": "szaher01",
"uuid": "c4031a4885384376a717a238de975a9c"
},
"client_id": "752d8cd43d654e7a840bbfd277ce41af_szaher01"
}

[DEFAULT]
log_dir = /var/log/nova
lock_path = /var/lock/nova
state_path = /var/lib/nova
nova-manage cell_v2 list_cells --verbose

You might also like