Skip to content
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

Deprecation of RHEL 6 / CentOS 6 #188

Merged
merged 1 commit into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion actions/bwc_pkg_promote_all.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ parameters:
type: string
required: true
enum:
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
2 changes: 1 addition & 1 deletion actions/promote_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ parameters:
- trusty
- xenial
- bionic
- el6
- el7
- el8
- deb
- rpm
- all
Expand Down
4 changes: 1 addition & 3 deletions actions/st2_pkg_e2e_test.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
instance_type:
type: string
# There is no AMI which supports new C5 instance size for those distros
default: '{% if distro in ["CENTOS6", "RHEL6", "RHEL7"] %}c4.large{% else %}c5.large{% endif %}'
default: '{% if distro in ["RHEL7"] %}c4.large{% else %}c5.large{% endif %}'
environment:
type: string
enum:
Expand All @@ -34,10 +34,8 @@ parameters:
type: string
required: true
enum:
- CENTOS6
- CENTOS7
- CENTOS8
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
1 change: 0 additions & 1 deletion actions/st2_pkg_promote_all.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ parameters:
type: string
required: true
enum:
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
1 change: 0 additions & 1 deletion actions/st2_pkg_test_and_promote.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ parameters:
type: string
required: true
enum:
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
1 change: 0 additions & 1 deletion actions/st2_pkg_test_and_promote_enterprise.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ parameters:
type: string
required: true
enum:
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
29 changes: 0 additions & 29 deletions actions/st2_pkg_upgrade_deps_el6.meta.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions actions/st2_pkg_upgrade_deps_el6.sh

This file was deleted.

4 changes: 1 addition & 3 deletions actions/st2_pkg_upgrade_e2e_test.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
instance_type:
type: string
# There is no AMI which supports new C5 instance size for those distros
default: '{% if distro in ["CENTOS6", "RHEL6", "RHEL7"] %}c4.large{% else %}c5.large{% endif %}'
default: '{% if distro in ["RHEL7"] %}c4.large{% else %}c5.large{% endif %}'
environment:
type: string
enum:
Expand All @@ -34,10 +34,8 @@ parameters:
type: string
required: true
enum:
- CENTOS6
- CENTOS7
- CENTOS8
- RHEL6
- RHEL7
- RHEL8
- UBUNTU16
Expand Down
2 changes: 0 additions & 2 deletions actions/st2_pkg_upgrade_rpm.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ parameters:
type: string
required: true
enum:
- CENTOS6
- CENTOS7
- CENTOS8
- RHEL6
- RHEL7
- RHEL8
enterprise:
Expand Down
1 change: 0 additions & 1 deletion actions/workflows/bwc_pkg_promote_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ input:
unstable: "{{st2kv('system.enterprise_key_stg_unstable')}}"
- pkg_env: staging
- distro_to_distro_version_map:
RHEL6: el/6
RHEL7: el/7
RHEL8: el/8
UBUNTU16: ubuntu/xenial
Expand Down
30 changes: 15 additions & 15 deletions actions/workflows/promote_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tasks:
init:
action: core.local
input:
cmd: mkdir -p /tmp/st2-up/{ubuntu/trusty,ubuntu/xenial,ubuntu/bionic,el/6,el/7}
cmd: mkdir -p /tmp/st2-up/{ubuntu/trusty,ubuntu/xenial,ubuntu/bionic,el/7,el/8}
next:
- when: <% succeeded() and (ctx().os in list('all', 'deb', 'trusty')) %>
publish:
Expand All @@ -36,20 +36,20 @@ tasks:
- source: <% ctx().repo = 'enterprise' and 'enterprise-staging' or ctx().repo = 'enterprise-unstable' and 'enterprise-staging-unstable' or ctx().repo = 'stable' and 'staging-stable' or ctx().repo = 'unstable' and 'staging-unstable' %>
do:
- download_bionic
- when: <% succeeded() and (ctx().os in list('all', 'rpm', 'el6')) %>
- when: <% succeeded() and (ctx().os in list('all', 'rpm', 'el7')) %>
publish:
- rpm: <% ctx().package %>-<% ctx().version %>-<% ctx().revision %>.x86_64.rpm
- deb: <% ctx().package %>_<% ctx().version %>-<% ctx().revision %>_amd64.deb
- source: <% ctx().repo = 'enterprise' and 'enterprise-staging' or ctx().repo = 'enterprise-unstable' and 'enterprise-staging-unstable' or ctx().repo = 'stable' and 'staging-stable' or ctx().repo = 'unstable' and 'staging-unstable' %>
do:
- download_el6
- when: <% succeeded() and (ctx().os in list('all', 'rpm', 'el7')) %>
- download_el7
- when: <% succeeded() and (ctx().os in list('all', 'rpm', 'el8')) %>
publish:
- rpm: <% ctx().package %>-<% ctx().version %>-<% ctx().revision %>.x86_64.rpm
- deb: <% ctx().package %>_<% ctx().version %>-<% ctx().revision %>_amd64.deb
- source: <% ctx().repo = 'enterprise' and 'enterprise-staging' or ctx().repo = 'enterprise-unstable' and 'enterprise-staging-unstable' or ctx().repo = 'stable' and 'staging-stable' or ctx().repo = 'unstable' and 'staging-unstable' %>
do:
- download_el7
- download_el8

download_trusty:
action: core.local
Expand Down Expand Up @@ -96,32 +96,32 @@ tasks:
cmd: LANG=en_US.utf8 PACKAGECLOUD_TOKEN=<% ctx().token %> package_cloud push StackStorm/<% ctx().repo %>/ubuntu/bionic /tmp/st2-up/ubuntu/bionic/<% ctx().deb %>
timeout: <% ctx().timeout %>

download_el6:
download_el7:
action: core.local
input:
cmd: wget -O /tmp/st2-up/el/6/<% ctx().rpm %> https://packagecloud.io/StackStorm/<% ctx().source %>/el/6/x86_64/<% ctx().rpm %>
cmd: wget -O /tmp/st2-up/el/7/<% ctx().rpm %> https://packagecloud.io/StackStorm/<% ctx().source %>/el/7/x86_64/<% ctx().rpm %>
timeout: <% ctx().timeout %>
next:
- when: <% succeeded() %>
do:
- upload_el6
upload_el6:
- upload_el7
upload_el7:
action: core.local
input:
cmd: LANG=en_US.utf8 PACKAGECLOUD_TOKEN=<% ctx().token %> package_cloud push StackStorm/<% ctx().repo %>/el/6 /tmp/st2-up/el/6/<% ctx().rpm %>
cmd: LANG=en_US.utf8 PACKAGECLOUD_TOKEN=<% ctx().token %> package_cloud push StackStorm/<% ctx().repo %>/el/7 /tmp/st2-up/el/7/<% ctx().rpm %>
timeout: <% ctx().timeout %>

download_el7:
download_el8:
action: core.local
input:
cmd: wget -O /tmp/st2-up/el/7/<% ctx().rpm %> https://packagecloud.io/StackStorm/<% ctx().source %>/el/7/x86_64/<% ctx().rpm %>
cmd: wget -O /tmp/st2-up/el/8/<% ctx().rpm %> https://packagecloud.io/StackStorm/<% ctx().source %>/el/8/x86_64/<% ctx().rpm %>
timeout: <% ctx().timeout %>
next:
- when: <% succeeded() %>
do:
- upload_el7
upload_el7:
- upload_el8
upload_el8:
action: core.local
input:
cmd: LANG=en_US.utf8 PACKAGECLOUD_TOKEN=<% ctx().token %> package_cloud push StackStorm/<% ctx().repo %>/el/7 /tmp/st2-up/el/7/<% ctx().rpm %>
cmd: LANG=en_US.utf8 PACKAGECLOUD_TOKEN=<% ctx().token %> package_cloud push StackStorm/<% ctx().repo %>/el/8 /tmp/st2-up/el/8/<% ctx().rpm %>
timeout: <% ctx().timeout %>
1 change: 0 additions & 1 deletion actions/workflows/run_all_nightlies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ input:

vars:
- distros:
RHEL6: el6
RHEL7: el7
RHEL8: el8
UBUNTU16: u16
Expand Down
24 changes: 1 addition & 23 deletions actions/workflows/st2_pkg_e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ tasks:
distro: pkg_<% ctx().distro %>
role: <% ctx().role %>
next:
- when: <% succeeded() and (ctx().distro = 'RHEL6') %>
publish:
- vm_info: <% result().output.vm_info %>
- vm_id: <% result().output.vm_info.id %>
do: patch_rhel6
- when: <% succeeded() and (ctx().distro != 'RHEL6') %>
- when: <% succeeded() %>
publish:
- vm_info: <% result().output.vm_info %>
- vm_id: <% result().output.vm_info.id %>
Expand All @@ -110,23 +105,6 @@ tasks:
- vm_id: <% result().output.get("vm_info", {}).get("id") %>
- failed: True
do: cleanup
patch_rhel6:
action: core.remote_sudo
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: yum-config-manager --enable rhui-REGION-rhel-server-releases-optional
next:
- when: <% succeeded() %>
do: patch_rhel6_curl
patch_rhel6_curl:
action: core.remote_sudo
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: yum install -y curl nss
timeout: 180
next:
- when: <% succeeded() %>
do: get_bootstrap_script
get_bootstrap_script:
action: core.remote_sudo
input:
Expand Down
2 changes: 0 additions & 2 deletions actions/workflows/st2_pkg_promote_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ input:
unstable: "{{st2kv('system.enterprise_key_stg_unstable')}}"
- pkg_env: staging
- distro_to_distro_version_map:
RHEL6: el/6
RHEL7: el/7
RHEL8: el/8
UBUNTU16: ubuntu/xenial
Expand All @@ -19,7 +18,6 @@ input:
- promoted_st2mistral: false
- promoted_st2web: false
- mistral_supported_distros:
- RHEL6
- RHEL7
- UBUNTU16
- notify_channels:
Expand Down
2 changes: 0 additions & 2 deletions actions/workflows/st2_pkg_test_and_promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ input:
- debug
- pkg_env: staging
- distro_to_distro_version_map:
RHEL6: el/6
RHEL7: el/7
RHEL8: el/8
UBUNTU16: ubuntu/xenial
UBUNTU18: ubuntu/bionic
- mistral_supported_distros:
- RHEL6
- RHEL7
- UBUNTU16
- promoted_st2: false
Expand Down
33 changes: 4 additions & 29 deletions actions/workflows/st2_pkg_upgrade_e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,12 @@ tasks:
distro: pkg_<% ctx().distro %>
role: <% ctx().role %>
next:
- when: <% succeeded() and ctx().distro = 'RHEL6' %>
publish:
- vm_info: <% result().output.vm_info %>
- vm_id: <% result().output.vm_info.id %>
do:
- patch_rhel6
- when: <% succeeded() and ctx().distro != 'RHEL6' %>
- when: <% succeeded() %>
publish:
- vm_info: <% result().output.vm_info %>
- vm_id: <% result().output.vm_info.id %>
do:
- get_bootstrap_script
patch_rhel6:
action: core.remote_sudo
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: yum-config-manager --enable rhui-REGION-rhel-server-releases-optional
next:
- when: <% succeeded() %>
do:
- patch_rhel6_curl
patch_rhel6_curl:
action: core.remote_sudo
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: yum install -y curl nss
timeout: 180
next:
- when: <% succeeded() %>
do:
- get_bootstrap_script
get_bootstrap_script:
action: core.remote_sudo
input:
Expand Down Expand Up @@ -172,7 +147,7 @@ tasks:
version_str: <% result().output.versions.items().select( $[0] + "=" + $[1]).join("\n\t") %>
# determine the list of packages to upgrade base on OS
# modern OSes (el8+, u18+) do not have mistral
- pkg_list: <% switch(((ctx().distro = 'RHEL8') or (ctx().distro = 'CENTOS8')) => ctx().pkg_list_modern, ((ctx().distro = 'RHEL7') or (ctx().distro = 'CENTOS7')) => ctx().pkg_list_legacy, ((ctx().distro = 'RHEL6') or (ctx().distro = 'CENTOS6')) => ctx().pkg_list_legacy) %>
- pkg_list: <% switch(((ctx().distro = 'RHEL8') or (ctx().distro = 'CENTOS8')) => ctx().pkg_list_modern, ((ctx().distro = 'RHEL7') or (ctx().distro = 'CENTOS7')) => ctx().pkg_list_legacy) %>
do:
- upgrade_packages_rpm
- when: <% succeeded() and ctx().distro.startsWith('UBUNTU') %>
Expand All @@ -199,7 +174,7 @@ tasks:
- when: <% succeeded() and (not ctx().enterprise) and (ctx().distro = 'RHEL8' or ctx().distro = 'CENTOS8') %>
do:
- post_migration_start
- when: <% succeeded() and (not ctx().enterprise) and (ctx().distro = 'RHEL7' or ctx().distro = 'CENTOS7' or ctx().distro = 'RHEL6' or ctx().distro = 'CENTOS6') %>
- when: <% succeeded() and (not ctx().enterprise) and (ctx().distro = 'RHEL7' or ctx().distro = 'CENTOS7' ) %>
do:
- migrate_models
upgrade_packages_deb:
Expand Down Expand Up @@ -255,7 +230,7 @@ tasks:
- when: <% succeeded() and (ctx().distro = 'RHEL8' or ctx().distro = 'CENTOS8') %>
do:
- post_migration_start
- when: <% succeeded() and (ctx().distro = 'RHEL7' or ctx().distro = 'CENTOS7' or ctx().distro = 'RHEL6' or ctx().distro = 'CENTOS6') %>
- when: <% succeeded() and (ctx().distro = 'RHEL7' or ctx().distro = 'CENTOS7' ) %>
do:
- migrate_models
migrate_models:
Expand Down
Loading