<div dir="ltr"><div dir="ltr">Hi Harald/TripleO Team,<div><br></div><div>Is there any solution/work around for the problem being faced?</div><div><br></div><div><b>Ensure DNF modules have the right stream</b> | undercloud | item={'module': 'container-tools', 'stream': '3.0'} | error={<br>    "ansible_loop_var": "item",<br>    "changed": false,<br>    "invocation": {<br>        "module_args": {<br>            "allow_downgrade": false,<br>            "autoremove": false,<br>            "bugfix": false,<br>            "conf_file": null,<br>            "disable_excludes": null,<br>            "disable_gpg_check": false,<br>            "disable_plugin": [],<br>            "disablerepo": [],<br>            "download_dir": null,<br>            "download_only": false,<br>            "enable_plugin": [],<br>            "enablerepo": [],<br>            "exclude": [],<br>            "install_repoquery": true,<br>            "install_weak_deps": true,<br>            "installroot": "/",<br>            "list": null,<br>            "lock_timeout": 30,<br>            "name": [<br>                "@container-tools:3.0/common"<br>            ],<br>            "releasever": null,<br>            "security": false,<br>            "skip_broken": false,<br>            "state": "present",<br>            "update_cache": false,<br>            "update_only": false,<br>            "validate_certs": true<br>        }<br>    },<br>    "item": {<br>        "module": "container-tools",<br>        "stream": "3.0"<br>    },<br>    "msg": "<b>No group container-tools:3.0/common available</b>.",<br>    "results": []<br>}<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 23, 2022 at 2:45 PM Anirudh Gupta <<a href="mailto:anyrude10@gmail.com">anyrude10@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Harald,</div><div><br></div><div>Thanks for sharing the steps and apologies for the late reply.</div><div><br></div><div>I tried setting up Local Repo Server and Registry Server on one machine. </div><div>Using that I successfully deployed Openstack Ussuri Undercloud and Overcloud in an offline mode.</div><div><br></div><div>Now, in order to test Upgrade from USSURI to VICTORIA, I updated the repo file and podman registry at my local server for Victoria.</div><div>On Undercloud , repo file content is as follows:</div><div><br></div><div>[tripleo]<br>baseurl = <a href="http://30.30.30.8/software/repos/tripleo_victoria" target="_blank">http://30.30.30.8/software/repos/tripleo_victoria</a><br>enabled = 1<br>gpgcheck = 0<br>module_hotfixes=1<br>name = tripleo<br></div><div><br></div><div>where 30.30.30.8 is the IP of my reposerver.</div><div><br></div><div>With this I have successfully updated the required packages using the command:</div><div><b><i>sudo yum update python*-tripleoclient openstack-tripleo-common openstack-tripleo-heat-templates</i></b><br></div><div><br></div><div>Also the container image prepare file, now has the following content</div><div>parameter_defaults:<br>  ContainerImagePrepare:<br>  - push_destination: true<br>    set:<br>      name_prefix: openstack-<br>      name_suffix: ''<br>      namespace: <a href="http://myserver.com:5000/tripleovictoria" target="_blank">myserver.com:5000/tripleovictoria</a><br>      neutron_driver: ovn<br>      rhel_containers: false<br>      tag: current-tripleo<br>    tag_from_label: rdo_version<br></div><div><br></div><div><br></div><div>But once I run the command "<b><i>openstack undercloud upgrade</i></b>", I get the following error</div><div>2022-03-23 09:53:24,527 p=380392 u=root n=ansible | 2022-03-23 09:53:24.527073 | 5254007b-2040-558f-a68f-0000000000ac |      FATAL | Ensure DNF modules have the right stream | undercloud | item={'module': 'container-tools', 'stream': '3.0'} | error={<br>    "ansible_loop_var": "item",<br>    "changed": false,<br>    "invocation": {<br>        "module_args": {<br>            "allow_downgrade": false,<br>            "autoremove": false,<br>            "bugfix": false,<br>            "conf_file": null,<br>            "disable_excludes": null,<br>            "disable_gpg_check": false,<br>            "disable_plugin": [],<br>            "disablerepo": [],<br>            "download_dir": null,<br>            "download_only": false,<br>            "enable_plugin": [],<br>            "enablerepo": [],<br>            "exclude": [],<br>            "install_repoquery": true,<br>            "install_weak_deps": true,<br>            "installroot": "/",<br>            "list": null,<br>            "lock_timeout": 30,<br>            "name": [<br>                "@container-tools:3.0/common"<br>            ],<br>            "releasever": null,<br>            "security": false,<br>            "skip_broken": false,<br>            "state": "present",<br>            "update_cache": false,<br>            "update_only": false,<br>            "validate_certs": true<br>        }<br>    },<br>    "item": {<br>        "module": "container-tools",<br>        "stream": "3.0"<br>    },<br>    "msg": "<b>No group container-tools:3.0/common available</b>.",<br>    "results": []<br>}<br></div><div><br></div><div>Can you please help in resolving this issue.</div><div><br></div><div>Regards</div><div>Anirudh Gupta</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 23, 2022 at 2:06 PM Lokendra Rathour <<a href="mailto:lokendrarathour@gmail.com" target="_blank">lokendrarathour@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Harald Jensas</strong> <span dir="auto"><<a href="mailto:hjensas@redhat.com" target="_blank">hjensas@redhat.com</a>></span><br>Date: Wed, Feb 23, 2022 at 9:57 PM<br>Subject: Re: [TripleO] Offline Installation Support<br>To:  <<a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a>><br></div><br><br>On 2/16/22 13:58, Anirudh Gupta wrote:<br>
> Hi Team,<br>
> <br>
> We have successfully done POC on deploying my TripleO Train HA Setup <br>
> with Baremetal Provisioning on Overcloud Node as well.<br>
> <br>
> We would like to thank Tripleo community members for helping us and <br>
> resolving all our concerns at all times.<br>
> <br>
> Moving forward, we need to deploy the setup on the Lab environment for <br>
> which I need some support as well.<br>
> <br>
> We don't have internet in Lab machines, all that we have is access to a <br>
> central server (staging) which has internet access and we can download <br>
> all the requirements over there.<br>
> <br>
> Queries:<br>
> <br>
>   * Is there any feasible method to install Undercloud and Overcloud<br>
>     Machines in complete offline mode?<br>
>   * If yes, then<br>
> <br>
>      1. What are the steps to download all related stuff on the staging<br>
>         server?<br>
<br>
I don't know the exact steps, and I am not aware of upstream <br>
documentation page explaining this.<br>
<br>
You will probalby want to use the 'rsync' tool to sync RDO RPM <br>
repositories and create a local repo on you staging machine. Sync <br>
packages, use `createrepo` tool to generate yum/dnf repo metadata. Then <br>
set up a webserver to make the repository available over HTTP. Search <br>
the internets for "Create local RPM repository / mirror", there are many <br>
generic guides that will help you.<br>
<br>
<br>
For containers you need to set up a local container registry. Then I <br>
would suggest useing the `skopeo`[1] tool to sync containers from the <br>
public registry to your local registry.<br>
<br>
>      2. What modifications would be required in undercloud/overcloud and<br>
>         other configuration files to support this?<br>
> <br>
<br>
You need to set up the undercloud to use the RPM repositries on the <br>
staging server. Put config in /etc/yum.repos.d/*.repo files. Once the <br>
overcloud is deployed you would want to add the repo config there as well.<br>
<br>
You need to use a custom containers-prepare file when deploying the <br>
undercloud and overcloud, you must set the namespaces to point to your <br>
local registry. Something like this:<br>
<br>
parameter_defaults:<br>
   ContainerImagePrepare:<br>
   - push_destination: false<br>
     set:<br>
       name_prefix: openstack-<br>
       name_suffix: ''<br>
       namespace: <a href="http://staging.example.com:5000/tripleotrain" rel="noreferrer" target="_blank">staging.example.com:5000/tripleotrain</a><br>
       neutron_driver: null<br>
       tag: current-tripleo<br>
       ...<br>
<br>
I would suggest generating the container prepare env file with the <br>
`openstack tripleo container image prepare` command[2] and then edit the <br>
generated file.<br>
<br>
<br>
[1] <a href="https://github.com/containers/skopeo" rel="noreferrer" target="_blank">https://github.com/containers/skopeo</a><br>
[2] <br>
<a href="https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/container_image_prepare.html" rel="noreferrer" target="_blank">https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/container_image_prepare.html</a><br>
<br>
<br>
</div><br clear="all"><div><br></div>--<div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div>
</blockquote></div></div>
</blockquote></div></div>