{{tag>Brouillon}} = Notes OpenStack **Brouillon** Voir : * https://docs.openstack.org/openstack-ansible/latest/user/aio/quickstart.html * [[https://www.rdoproject.org/|RDO (Red Hat Distribution of OpenStack) la distribution OpenStack de RedHat]] * https://www.golinuxcloud.com/category/openstack/ * https://www.geekarea.fr/wordpress/?p=697 * [[https://wiki.infn.it/progetti/cloud-areapd/keystone-glance_high_availability/openstack_ha/temp|Installation and Configuration of OpenStack Controller Node]] * https://deep75.medium.com/cloudflare-argo-tunnel-accessible-gratuitement-mise-en-oeuvre-avec-k3s-1d0c415a150d OpenStack Voir aussi : * OpenNebula * CloudStack Devstack Pré-requis : * 8Go RAM * 2 Cores * 1 NIC Voir : https://wescale.developpez.com/tutoriels/apprendre-openstack-les-bases/ Install : https://github.com/rdoxenham/openstack-training/blob/master/labs/openstack-summit.md Ubuntu LTS export NO_PROXY=localhost,127.0.0.1,192.168.56.22 # export http_proxy=http://127.0.0.1:3128 # export https_proxy=http://127.0.0.1:3128 export ALL_PROXY=http://127.0.0.1:3128 git config --global http.proxy http://192.168.56.1:3128 git clone https://git.openstack.org/openstack-dev/devstack cp -p ./samples/local.conf . ./stack.sh:751:git_clone /opt/stack/devstack/functions-common:537:git_timed /opt/stack/devstack/functions-common:601:die [ERROR] /opt/stack/devstack/functions-common:601 git call failed: [git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master] Error on exit git config --global url."https://".insteadOf git:// ''local.conf'' ADMIN_PASSWORD=secret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD IPV4_ADDRS_SAFE_TO_USE=192.168.56.0/24 HOST_IP=192.168.56.22 LOGDAYS=1 LOGFILE=$DEST/logs/stack.sh.log RECLONE=yes PIP_UPGRADE=True #IP_VERSION=4+6 IP_VERSION=4 DEFAULT_INSTANCE_TYPE=m1.tiny journalctl --unit devstack@* apt-get update && apt-get upgrade apt-get install git adduser stack echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/stack su - stack export http_proxy=http://192.168.56.1:3128 export https_proxy=http://192.168.56.1:3128 git clone https://git.openstack.org/openstack-dev/devstack cd devstack/samples cp local.conf .. cd .. ''local.conf'' HOST_IP=192.168.56.101 FLOATING_RANGE=192.168.56.224/27 ./stack.sh timeout -s SIGINT 0 git clone git://git.openstack.org/openstack/keystone.git /opt/stack/keystone --branch master openstack --os-cloud=devstack-admin --os-region-name=RegionOne image create cirros-0.3.5-x86_64-disk --public --container-format=bare --disk-format qcow2 Voir : * https://wiki.debian.org/OpenStackPuppetHowto * https://developer.ibm.com/linuxonpower/2017/06/01/creating-power-debian-cloud-image-openstack/ ''local.conf'' [[local|localrc]] ADMIN_PASSWORD=secret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.245.108.3 LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data sudo su - stack cd devstack source openrc export OS_USERNAME=admin #export OS_PASSWORD=secret #export OS_PROJECT_NAME=admin #export OS_USER_DOMAIN_ID=default #export OS_PROJECT_DOMAIN_ID=default #export OS_IDENTITY_API_VERSION=3 #export OS_AUTH_URL=http://localhost:5000/v3 openstack user list openstack image list nova service-list nova list openstack server list cinder list sudo journalctl -f --unit devstack@* #nova show 936ea954-b91f-4490-bbc6-f36c22f27db1 openstack server show 416b59a7-aede-4c9b-94cf-ad37d2bd3e6e -f shell Error: Failed to perform requested operation on instance "plop", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]. No valid host was found. There are not enough hosts available. # export http_proxy=http://127.0.0.1:3128 # export https_proxy=http://127.0.0.1:3128 export ALL_PROXY=http://127.0.0.1:3128 export NO_PROXY=localhost,127.0.0.1,10.245.108.3,192.168.122.0/24 VirtIO glance image-update \ --property hw_scsi_model=virtio-scsi \ [image] hw_disk_bus_model=virtio-scsi hw_scsi_model=virtio-scsi hw_disk_bus=scsi ''/etc/keystone/keystone.conf'' [token] expiration = 36000 ''/opt/stack/horizon/openstack_dashboard/local/local_settings.py'' SESSION_TIMEOUT=36000 systemctl restart devstack@keystone.service systemctl restart apache2 ''~/devstack/stackrc'' if ! isset ENABLED_SERVICES ; then # Keystone - nothing works without keystone ENABLED_SERVICES=key # Nova - services to support libvirt based openstack clouds ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-novnc,n-cauth,n-api-meta # Placement service needed for Nova ENABLED_SERVICES+=,placement-api,placement-client # Glance services needed for Nova ENABLED_SERVICES+=,g-api,g-reg # Cinder ENABLED_SERVICES+=,c-sch,c-api,c-vol # Neutron ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 # Dashboard ENABLED_SERVICES+=,horizon # Additional services ENABLED_SERVICES+=,rabbit,tempest,mysql,etcd3,dstat # PERSO ENABLED_SERVICES+=,n-sproxy fi == Diag RabbitMQ sudo rabbitmqctl list_queues == Supervision OpenStack supervision - Diag * db ok ? * ping openstack cli * rabbitmq ? * port listen : 5000/tcp FIXME