[Antelope][Offline] - Offline Installation help

Bug #2070174 reported by Nilesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

Hi,

I am Planning to install OSA Antelope with limited connectivity or no access of internet on the cloud.
I wanted to build the offline repository, But the information on the page [1] is not helping.

* First I am trying to build the pip repo, but I am not able to find out all the pip requirement that is needed, so I can just download all that at one place using pip freez and download

* Second I am able to mirror all the apt repo
* Third ansible-collection/galaxy/roles, - I am not able to find all ansible collection/galaxy roles,

Can you please help me to redirect to the page or list of all repo require to build offline repo.

[1]
~~~
https://docs.openstack.org/openstack-ansible/latest/user/limited-connectivity/index.html
~~~

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ):

Hey

So for PyPi mirrors, I'm not sure if we have a definitive list of packages that are used. But, I think upper-constraints.yml should cover >90% at very least: https://releases.openstack.org/constraints/upper/2023.1

Then, repos for service projects are expected to be forked repositories rater then part of PyPi. Since Antelope they're stored in a group_vars in files named source_git.yml, ie: https://opendev.org/openstack/openstack-ansible/src/branch/stable/2023.1/inventory/group_vars/nova_all/source_git.yml

You can either override openstack_github_base_url /
openstack_opendev_base_url or override path for each <service>_git_repo

Regarding apt repositories, I think we tried to mention most of them in the doc. So except default OS repos you'd also need:
* UCA for ubuntu, RDO for EL, ospbo for debian (ie for ubuntu placed here: https://opendev.org/openstack/openstack-ansible-openstack_hosts/src/branch/master/vars/ubuntu-22.04.yml#L82-L93)
* MariaDB: https://opendev.org/openstack/openstack-ansible-galera_server/src/branch/master/vars/debian.yml#L78-L84
* RabbitMQ: https://opendev.org/openstack/openstack-ansible-rabbitmq_server/src/branch/master/vars/debian.yml#L25-L36
* Ceph (if used): https://opendev.org/openstack/openstack-ansible-ceph_client/src/branch/master/vars/debian.yml#L49-L52

Regarding collection/roles - as of today we install all of them from git directly rather then ansible-galaxy. And these are spread over 2 files:
* roles: https://opendev.org/openstack/openstack-ansible/src/branch/master/ansible-role-requirements.yml
* collections: https://opendev.org/openstack/openstack-ansible/src/branch/master/ansible-collection-requirements.yml

Just in case, you can create /etc/openstack_deploy/user-(collection|role)-requirements.yml as well to extend/override content of these.

PS: We're using PULP quite sucessfully to mirror apt/pypi here internally together with OpenStack-Ansible: https://pulpproject.org/user/

Revision history for this message
Nilesh (cnilesh) wrote :

Hi Dmitiry,

Thank you so much for the quick response, I will start working on it, from next week, Will keep you posted about the progress.

Revision history for this message
Nilesh (cnilesh) wrote :

Hi Dmitiry,

Good morning/Evening.

If possible, Can you please help in sharing ur Working Notes on Pulp Setup of pipi builds.

I guess pulp will be more reliable/stable solution for long run.

Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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