Standalone Containers based Deployment in TripleO

Bug #1969644 reported by Roger
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
Roger Heslop

Bug Description

Description
===========
- [x] This doc is inaccurate in this way: The recommended command for deploying OpenStack standalone does not work.

sudo openstack tripleo deploy \
--templates \
--local-ip=10.10.81.50/24 \
--control-virtual-ip 10.10.81.51 \
-e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \
-r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \
-e $HOME/containers-prepare-parameters.yaml \
-e $HOME/standalone_parameters.yaml \
--output-dir $HOME \
--standalone

Steps to reproduce
==================

Follow the document exactly as outlined (minor changes for IP addresses in your own env)

Expected result
===============

Successful deploy

Actual result
=============

/usr/lib64/python3.6/site-packages/_yaml/__init__.py:23: DeprecationWarning: The _yaml extension module is now located at yaml._yaml and its location is subject to change. To use the LibYAML-based parser and emitter, import from `yaml`: `from yaml import CLoader as Loader, CDumper as Dumper`.
  DeprecationWarning
usage: openstack tripleo deploy [--templates [TEMPLATES]] [--upgrade] [-y]
                                [--stack STACK] [--output-dir OUTPUT_DIR]
                                [--output-only]
                                [--standalone-role STANDALONE_ROLE]
                                [-t <TIMEOUT>] [-e <HEAT ENVIRONMENT FILE>]
                                [--roles-file ROLES_FILE]
                                [--networks-file NETWORKS_FILE]
                                [--plan-environment-file PLAN_ENVIRONMENT_FILE]
                                [--heat-api-port <HEAT_API_PORT>]
                                [--heat-user <HEAT_USER>]
                                [--deployment-user DEPLOYMENT_USER]
                                [--deployment-python-interpreter DEPLOYMENT_PYTHON_INTERPRETER]
                                [--heat-container-image <HEAT_CONTAINER_IMAGE>]
                                [--heat-native [HEAT_NATIVE]]
                                [--local-ip <LOCAL_IP>]
                                [--control-virtual-ip <CONTROL_VIRTUAL_IP>]
                                [--public-virtual-ip <PUBLIC_VIRTUAL_IP>]
                                [--local-domain <LOCAL_DOMAIN>] [--cleanup]
                                [--hieradata-override [HIERADATA_OVERRIDE]]
                                [--keep-running] [--inflight-validations]
                                [--transport TRANSPORT]
                                [--ansible-forks ANSIBLE_FORKS]
                                [--disable-container-prepare]
                                [--reproduce-command]
                                [--force-stack-update | --force-stack-create]
openstack tripleo deploy: error: argument --standalone-role: expected one argument

Environment
===========

Ceph 8 stream (CentOS-Stream-GenericCloud-8-20220125.1.x86_64.qcow2)

https://trunk.rdoproject.org/centos8/component/tripleo/current/python3-tripleo-repos-0.1.1-0.20220214194848.cbbdde6.el8.noarch.rpm (Zed / latest)

Tested directions both with and without Ceph

- [x] I have a fix to the document that I can paste below including example: input and output.

This command works:

sudo openstack tripleo deploy \
--templates \
--standalone-role Standalone \
--local-ip=10.10.81.50/24 \
--control-virtual-ip 10.10.81.51 \
-e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \
-r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \
-e $HOME/containers-prepare-parameters.yaml \
-e $HOME/standalone_parameters.yaml \
--output-dir $HOME

(I replaced `--standalone` option with `--standalone-role Standalone`)

If you have a troubleshooting or support issue, use the following resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on OFTC

-----------------------------------
Release: 3.0.0 on 2022-04-11 14:22:42
SHA: 2a795074eb53828b44a323c068ae4d39738daa6a
Source: https://opendev.org/openstack/tripleo-docs/src/deploy-guide/source/deployment/standalone.rst
URL: https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/standalone.html

Revision history for this message
Alex Schultz (alex-schultz) wrote :

--standalone was removed in a previous release. --standalone-role Standalone doens't need to be specified as that's the default. It's throwing an error because --standalone is being matched to --standalone-role by the arg parser.

Revision history for this message
Roger (heslop) wrote :

Thanks for the feedback Alex.

I checked the release notes and found the --standalone flag to be deprecated in victoria / python-tripleoclient 13.6.0. [0]

I only tested the current[1] docs for standalone deployments, but wallaby[2] documentation also has the --standalone flag in the deploy command.

------

[0] https://docs.openstack.org/releasenotes/python-tripleoclient/victoria.html#relnotes-13-6-0-stable-victoria

[1] https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/standalone.html
[2] https://docs.openstack.org/project-deploy-guide/tripleo-docs/wallaby/deployment/standalone.html

Roger Heslop (rheslop)
Changed in tripleo:
assignee: nobody → Roger Heslop (rheslop)
Revision history for this message
Roger Heslop (rheslop) wrote :

Hey Alex, quick question. I'd like to see about creating a merge request, this is my first time through the process. It looks like the bug should be set to 'confirmed' by someone other than the reporter — can you do this?

yatin (yatinkarel)
Changed in tripleo:
status: New → Confirmed
importance: Undecided → Low
milestone: none → yoga-1
Revision history for this message
yatin (yatinkarel) wrote :

Hi Roger, you can send a review request to fix it. The source is located at https://opendev.org/openstack/tripleo-docs.

Revision history for this message
Roger Heslop (rheslop) wrote :

Thank you for the help Yatin! I've submitted the change to the master branch, I'll do the same for Wallaby:

https://review.opendev.org/c/openstack/tripleo-docs/+/839372

Changed in tripleo:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-docs (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-docs/+/839372
Committed: https://opendev.org/openstack/tripleo-docs/commit/8860eae11331229d8495a33320d52f034313de07
Submitter: "Zuul (22348)"
Branch: master

commit 8860eae11331229d8495a33320d52f034313de07
Author: rheslop <email address hidden>
Date: Tue Apr 26 07:41:52 2022 -0500

    Remove --standalone from tripleo deploy command

    This option was deprecated during Victoria cycle[1] and was removed
    during Wallaby cycle[2].

    [1] a5381b21694ef8c0ca2f587ea2e58a24a57736e5
    [2] 5cbc2b8ef154b269bad8491e7d469c6094514335

    Closes-Bug: #1969644
    Change-Id: Id17920902028841b951f77a3d262e99d5250ec0d

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-docs (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-docs/+/839375
Committed: https://opendev.org/openstack/tripleo-docs/commit/d1410686bf4490dbc50b46688502f76b93c08474
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit d1410686bf4490dbc50b46688502f76b93c08474
Author: rheslop <email address hidden>
Date: Tue Apr 26 07:41:52 2022 -0500

    Remove --standalone from tripleo deploy command

    This option was deprecated during Victoria cycle[1] and was removed
    during Wallaby cycle[2].

    [1] a5381b21694ef8c0ca2f587ea2e58a24a57736e5
    [2] 5cbc2b8ef154b269bad8491e7d469c6094514335

    Conflicts:
            deploy-guide/source/deployment/standalone.rst

    Fixed the conflict caused by 27b3c1f5997eedad9b8c21db415d5452c785a171 .

    Closes-Bug: #1969644
    Change-Id: Id17920902028841b951f77a3d262e99d5250ec0d
    (cherry picked from commit 8860eae11331229d8495a33320d52f034313de07)

tags: added: in-stable-wallaby
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.