Skip to content

Commit 44fc588

Browse files
Merge branch 'juniper' into 'master'
Merge juniper release to main branch Closes VIYAARK-233 See merge request sassoftware/viya-ark!347
2 parents 8ff2d11 + 9084527 commit 44fc588

7 files changed

+46
-10
lines changed

CHANGELOG.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# Changelog for SAS Viya ARK
22

33
<!-- LATEST RELEASE START -->
4+
## Viya35-ark-1.11 - December 18, 2020
5+
- **Summary**:
6+
Bug fixes and a couple of enhancments.
7+
- Issues addressed:
8+
- SAS Multi-Machine Service Utilties
9+
- VIYAARK-233 - MMSU: playbook encountered issue with starting sas-viya-spawner-default in multi-tenancy env
10+
- VIYAARK-234 - MMSU: provide better readable information for status in multi-tenancy env
11+
- VIYAARK-236 - MMSU: provide a check variable to disable pause timer when running stop playbook
12+
- SAS Viya Upgrade Tasks Playbooks
13+
- VIYAARK-41 - pre_upgrade fails if Viya 3.5 software order adds ModelServices
14+
- VIYAARK-222 - Archive Obsolete Log Folders Playbook Fails on Power Linux
15+
- Ansible Support: Ansible 2.8 - Ansible 2.10
16+
17+
<!-- LATEST RELEASE END -->
18+
419
## Viya35-ark-1.10 - October 20, 2020
520
- **Summary**:
621
Changing range of Ansible versions supported. Enhancing obsolete log archiving.
@@ -12,8 +27,6 @@
1227
- VIYAARK-104 - Produce summary report for Archive Obsolete Folders playbook.
1328
- Ansible Support: Ansible 2.8 - Ansible 2.10
1429

15-
<!-- LATEST RELEASE END -->
16-
1730

1831
## Viya35-ark-1.9 - September 30, 2020
1932
- **Summary**:

playbooks/viya-mmsu/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,18 @@ ansible-playbook viya-ark/playbooks/viya-mmsu/viya-services-restart.yml
6464
```
6565
enable_stray_cleanup: true
6666
```
67+
* When running playbook viya-services-stop.yml, there is a pause message for the stop confirmation:
68+
```
69+
TASK [WARNING: All Viya services are about to be stopped!]
70+
Pausing for 10 seconds
71+
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
72+
[WARNING: All Viya services are about to be stopped!]
73+
Press 'ctl+c' to interrupt the process. If no response, playbook will continue after 10 seconds:
74+
```
75+
User may modify viya-services-vars.yml file as following to disable the pause timer or pass the variable through the command line.
76+
```
77+
enable_pause_timer: false
78+
```
79+
6780
Copyright (c) 2019-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
6881
SPDX-License-Identifier: Apache-2.0

playbooks/viya-mmsu/viya-services-stop.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
pause:
1818
seconds: "{{stop_pause_timer}}"
1919
prompt: "Press 'ctl+c' to interrupt the process. If no response, playbook will continue after {{stop_pause_timer}} seconds"
20-
when: not ansible_check_mode
20+
when: not ansible_check_mode and enable_pause_timer|bool == true
2121

2222
- import_playbook: ../common/handle_hostgroup_hyphens.yml
2323
tags:
@@ -53,12 +53,12 @@
5353

5454
- block:
5555

56-
- name: Stop SAS microservices
57-
script: viya-svs.sh stopms
58-
5956
- name: Stop SAS multi-tenant services
6057
script: viya-svs.sh stopmt
6158

59+
- name: Stop SAS microservices
60+
script: viya-svs.sh stopms
61+
6262
any_errors_fatal: true
6363
when: psflag.stdout != "" and not ansible_check_mode and enable_svs_alternative|bool != true
6464

playbooks/viya-mmsu/viya-services-vars.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
# SPDX-License-Identifier: Apache-2.0
99
#
1010
---
11-
svs_label: 3.5.20200415
11+
svs_label: 3.5.20201204
1212
#########################################
1313
# Variables used in playbooks
1414
#########################################
1515
consul_retry_count: 2 #retry counter
16+
enable_pause_timer: true #pause timer
1617
enable_stray_cleanup: false #stray processes cleanup
1718
enable_svs_alternative: false #start/stop microservices using alternative script
1819
log_diskspace_minimum: 2097152000 #2GB

playbooks/viya-mmsu/viya-svs.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ do_stopcas()
3535
do_stop()
3636
{
3737
local LIST=$*
38-
NLIST=
38+
local NLIST=
3939
for p in $LIST
4040
do
4141
if [[ $p =~ -viya-all-services|-consul-|-vault-|-httpproxy-|-rabbitmq-|-sasdatasvrc- ]]; then
@@ -51,6 +51,13 @@ do_stop()
5151
do_startmt()
5252
{
5353
local LIST=$(ls sas-*-all-services 2>/dev/null| grep -v '\-viya\-')
54+
if [[ -x "sas-viya-runlauncher-default" ]]; then
55+
LIST="sas-viya-runlauncher-default $LIST"
56+
fi
57+
if [[ -x "sas-viya-spawner-default" ]]; then
58+
LIST="sas-viya-spawner-default $LIST"
59+
fi
60+
5461
do_start_common "$LIST"
5562
}
5663

@@ -152,7 +159,8 @@ do_svastatus()
152159

153160
for f in $LIST
154161
do
155-
/etc/init.d/$f status|sed "s|sas-services completed|$f completed|"
162+
/etc/init.d/$f status| sed "s|sas-viya-all-services completed|$f completed|;\
163+
s|sas-services completed|$f completed|"
156164
done
157165
return 0
158166
}

playbooks/viya-upgrade/archive_obsolete_log_folders.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
loop: "{{folders_to_archive}}"
160160
register: package_status_rhel
161161
ignore_errors: true
162-
when: ansible_distribution == redhat_os_name|string or ansible_distribution == oracle_os_name|string
162+
when: ansible_os_family == redhat_os_name|string or ansible_os_family == oracle_os_name|string
163163
check_mode: no
164164

165165
- name: "Create archive directory, {{viya_log_archive_path}}, if it doesn't exist"

playbooks/viya-upgrade/pre_upgrade/delete_mmlibs_caslib.yml

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
- SAS_ADMIN_PASSWORD | default('') != ''
243243
- mm_exists is defined
244244
- mm_exists == true
245+
- model_rep_version is defined
245246
- model_rep_version is version(modelrepo_shipped_version, '<')
246247

247248
# If credentials were not provided, log a debug message and add an item to the summary

0 commit comments

Comments
 (0)