-
Notifications
You must be signed in to change notification settings - Fork 23
zed: yoga merge #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
zed: yoga merge #950
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b81ee74
Add a note about network interfaces changes
priteau 78c3257
Bump seed Pulp to 3.43.1
m-bull 2257103
CI: Fail aio job when Terraform reaches max attempts
markgoddard 4837c8d
Merge pull request #940 from stackhpc/yoga-fix-tf-retries
markgoddard d9c3e65
Merge branch 'stackhpc/yoga' into update/seed-pulp-3.43.1
m-bull 56abaa7
Reduce Elasticsearch/OpenSearch heap size to 200m in ci-aio env
markgoddard b293231
Disable Heat in ci-aio env
markgoddard 23247d1
Reduce aio flavor to en1.medium
markgoddard 1d75be4
CI: Add tags to aio VMs
markgoddard bf7649e
CI: Add a workflow to clean up stale instances
markgoddard c338dd9
CI: Use skc-ci-aio user for aio jobs
markgoddard 3818ff9
Ubuntu Focal to Jammy migration support (#902)
seunghun1ee 55672df
Stop warning about invalid group name characters
priteau ca7fd1d
CI: Clean up instances in BUILD state, list by ID
markgoddard 186a03c
CI: Use correct URL for upper constraints
markgoddard dd288f1
Merge pull request #942 from stackhpc/yoga-medium-aio
markgoddard 98cfeba
Merge pull request #945 from stackhpc/silence-group-name-warning
markgoddard 8ddb62d
bumping ansible vault
GregWhiteyBialas 591f5cf
Merge pull request #941 from stackhpc/yoga-aio-tags
markgoddard 82c52b3
Merge pull request #949 from stackhpc/vault_module_bump
markgoddard 0030f3e
docs: Update network interface note to mention group_vars
markgoddard 391eff3
Merge pull request #816 from stackhpc/rl9-network-interfaces
markgoddard b3e2c56
Enable AiO jobs to be cancelled even if they're underway.
MaxBed4d 4d3356e
Merge pull request #866 from stackhpc/update/seed-pulp-3.43.1
markgoddard 5ddab7d
Merge pull request #926 from stackhpc/Enable-Job-Cancellation
markgoddard a679cd4
Merge pull request #943 from stackhpc/yoga-aio-user
markgoddard 22c15b7
Merge stackhpc/yoga into stackhpc/zed
markgoddard 2ce47a0
CI: Add cancellation support to check-tags job
markgoddard dce592c
Remove Ubuntu Jammy upgrade release note
markgoddard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: Clean up stale CI resources | ||
on: | ||
schedule: | ||
# Every 2 hours at quarter past | ||
- cron: '15 0/2 * * *' | ||
|
||
jobs: | ||
ci-cleanup: | ||
name: Clean up stale CI resources | ||
if: github.repository == 'stackhpc/stackhpc-kayobe-config' | ||
runs-on: ubuntu-latest | ||
permissions: {} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: src/kayobe-config | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Generate clouds.yaml | ||
run: | | ||
cat << EOF > clouds.yaml | ||
${{ secrets.CLOUDS_YAML }} | ||
EOF | ||
|
||
- name: Determine OpenStack release | ||
id: openstack_release | ||
run: | | ||
BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' src/kayobe-config/.gitreview) | ||
echo "openstack_release=${BRANCH}" | sed "s|stable/||" >> $GITHUB_OUTPUT | ||
|
||
- name: Install OpenStack client | ||
run: | | ||
pip install python-openstackclient -c https://releases.openstack.org/constraints/upper/${{ steps.openstack_release.outputs.openstack_release }} | ||
|
||
- name: Clean up aio instances over 3 hours old | ||
run: | | ||
result=0 | ||
changes_before=$(date -Imin -d -3hours) | ||
for status in ACTIVE BUILD ERROR SHUTOFF; do | ||
for instance in $(openstack server list --tags skc-ci-aio --os-compute-api-version 2.66 --format value --column ID --changes-before $changes_before --status $status); do | ||
echo "Cleaning up $status instance $instance" | ||
openstack server show $instance | ||
if ! openstack server delete $instance; then | ||
echo "Failed to delete $status instance $instance" | ||
result=1 | ||
fi | ||
done | ||
done | ||
exit $result | ||
env: | ||
OS_CLOUD: openstack | ||
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }} | ||
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
--- | ||
# To prevent Ansible role dependency errors, this playbook requires that environment variable | ||
# ANSIBLE_ROLES_PATH is defined and includes '$KAYOBE_PATH/ansible/roles' on the Ansible control host. | ||
- name: Migrate hosts from Ubuntu Focal 20.04 to Jammy 22.04 | ||
hosts: overcloud:infra-vms:seed:seed-hypervisor | ||
vars: | ||
ansible_python_interpreter: /usr/bin/python3 | ||
tasks: | ||
- name: Assert that hosts are running Ubuntu Focal | ||
assert: | ||
that: | ||
- ansible_facts.distribution == 'Ubuntu' | ||
- ansible_facts.distribution_major_version == '20' | ||
- ansible_facts.distribution_release == 'focal' | ||
- os_distribution == 'ubuntu' | ||
fail_msg: >- | ||
This playbook is only designed for Ubuntu Focal 20.04 hosts. Ensure | ||
that you are limiting it to only run on Focal hosts and | ||
os_distribution is set to ubuntu. | ||
|
||
- name: Ensure apt packages are up to date | ||
apt: | ||
update_cache: true | ||
upgrade: yes | ||
become: true | ||
|
||
- name: Ensure do-release-upgrade is installed | ||
package: | ||
name: ubuntu-release-upgrader-core | ||
state: latest | ||
become: true | ||
|
||
- name: Check whether a reboot is required | ||
stat: | ||
path: /var/run/reboot-required | ||
register: file_status | ||
|
||
- name: Reboot to apply updates | ||
reboot: | ||
reboot_timeout: 1200 | ||
connect_timeout: 600 | ||
become: true | ||
when: file_status.stat.exists | ||
|
||
# NOTE: We cannot use apt_repository here because definitions must exist within the standard repos.list | ||
- name: Ensure Jammy repo definitions exist in sources.list | ||
blockinfile: | ||
path: /etc/apt/sources.list | ||
block: | | ||
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy main restricted universe multiverse | ||
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy-updates main restricted universe multiverse | ||
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy-backports main restricted universe multiverse | ||
deb {{ stackhpc_repo_ubuntu_jammy_security_url }} jammy-security main restricted universe multiverse | ||
become: true | ||
|
||
- name: Do release upgrade | ||
command: do-release-upgrade -f DistUpgradeViewNonInteractive | ||
become: true | ||
|
||
- name: Ensure old venvs do not exist | ||
file: | ||
path: "/opt/kayobe/venvs/{{ item }}" | ||
state: absent | ||
loop: | ||
- kayobe | ||
- kolla-ansible | ||
become: true | ||
|
||
- name: Update Python and current user facts before re-creating Kayobe venv | ||
ansible.builtin.setup: | ||
filter: "{{ kayobe_ansible_setup_filter }}" | ||
gather_subset: "{{ kayobe_ansible_setup_gather_subset }}" | ||
|
||
- name: Run the Kayobe kayobe-target-venv playbook to ensure kayobe venv exists on remote host | ||
import_playbook: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}/share/kayobe/ansible/kayobe-target-venv.yml" | ||
|
||
- name: Run the Kayobe network configuration playbook, to ensure definitions are not lost on reboot | ||
import_playbook: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}/share/kayobe/ansible/network.yml" | ||
|
||
- name: Reboot and confirm the host is upgraded to Jammy 22.04 | ||
hosts: overcloud:infra-vms:seed:seed-hypervisor | ||
vars: | ||
ansible_python_interpreter: /usr/bin/python3 | ||
tasks: | ||
- name: Ensure Jammy repo definitions do not exist in sources.list | ||
blockinfile: | ||
path: /etc/apt/sources.list | ||
state: absent | ||
become: true | ||
|
||
- name: Reboot and wait | ||
reboot: | ||
reboot_timeout: 1200 | ||
connect_timeout: 600 | ||
become: true | ||
|
||
- name: Update distribution facts | ||
ansible.builtin.setup: | ||
filter: "{{ kayobe_ansible_setup_filter }}" | ||
gather_subset: "{{ kayobe_ansible_setup_gather_subset }}" | ||
|
||
- name: Assert that hosts are now using Ubuntu 22 | ||
assert: | ||
that: | ||
- ansible_facts.distribution_major_version == '22' | ||
- ansible_facts.distribution_release == 'jammy' | ||
|
||
- name: Run the OVN chassis priority fix playbook | ||
import_playbook: "{{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}/ansible/ovn-fix-chassis-priorities.yml" | ||
when: kolla_enable_ovn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.