Skip to content

Commit

Permalink
Merge branch 'juniper' into 'master'
Browse files Browse the repository at this point in the history
Merge juniper release to main branch

Closes VIYAARK-233

See merge request sassoftware/viya-ark!347
  • Loading branch information
kevinlinglesas committed Dec 18, 2020
2 parents 8ff2d11 + 9084527 commit 44fc588
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 10 deletions.
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Changelog for SAS Viya ARK

<!-- LATEST RELEASE START -->
## Viya35-ark-1.11 - December 18, 2020
- **Summary**:
Bug fixes and a couple of enhancments.
- Issues addressed:
- SAS Multi-Machine Service Utilties
- VIYAARK-233 - MMSU: playbook encountered issue with starting sas-viya-spawner-default in multi-tenancy env
- VIYAARK-234 - MMSU: provide better readable information for status in multi-tenancy env
- VIYAARK-236 - MMSU: provide a check variable to disable pause timer when running stop playbook
- SAS Viya Upgrade Tasks Playbooks
- VIYAARK-41 - pre_upgrade fails if Viya 3.5 software order adds ModelServices
- VIYAARK-222 - Archive Obsolete Log Folders Playbook Fails on Power Linux
- Ansible Support: Ansible 2.8 - Ansible 2.10

<!-- LATEST RELEASE END -->

## Viya35-ark-1.10 - October 20, 2020
- **Summary**:
Changing range of Ansible versions supported. Enhancing obsolete log archiving.
Expand All @@ -12,8 +27,6 @@
- VIYAARK-104 - Produce summary report for Archive Obsolete Folders playbook.
- Ansible Support: Ansible 2.8 - Ansible 2.10

<!-- LATEST RELEASE END -->


## Viya35-ark-1.9 - September 30, 2020
- **Summary**:
Expand Down
13 changes: 13 additions & 0 deletions playbooks/viya-mmsu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,18 @@ ansible-playbook viya-ark/playbooks/viya-mmsu/viya-services-restart.yml
```
enable_stray_cleanup: true
```
* When running playbook viya-services-stop.yml, there is a pause message for the stop confirmation:
```
TASK [WARNING: All Viya services are about to be stopped!]
Pausing for 10 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[WARNING: All Viya services are about to be stopped!]
Press 'ctl+c' to interrupt the process. If no response, playbook will continue after 10 seconds:
```
User may modify viya-services-vars.yml file as following to disable the pause timer or pass the variable through the command line.
```
enable_pause_timer: false
```

Copyright (c) 2019-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
8 changes: 4 additions & 4 deletions playbooks/viya-mmsu/viya-services-stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pause:
seconds: "{{stop_pause_timer}}"
prompt: "Press 'ctl+c' to interrupt the process. If no response, playbook will continue after {{stop_pause_timer}} seconds"
when: not ansible_check_mode
when: not ansible_check_mode and enable_pause_timer|bool == true

- import_playbook: ../common/handle_hostgroup_hyphens.yml
tags:
Expand Down Expand Up @@ -53,12 +53,12 @@

- block:

- name: Stop SAS microservices
script: viya-svs.sh stopms

- name: Stop SAS multi-tenant services
script: viya-svs.sh stopmt

- name: Stop SAS microservices
script: viya-svs.sh stopms

any_errors_fatal: true
when: psflag.stdout != "" and not ansible_check_mode and enable_svs_alternative|bool != true

Expand Down
3 changes: 2 additions & 1 deletion playbooks/viya-mmsu/viya-services-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
# SPDX-License-Identifier: Apache-2.0
#
---
svs_label: 3.5.20200415
svs_label: 3.5.20201204
#########################################
# Variables used in playbooks
#########################################
consul_retry_count: 2 #retry counter
enable_pause_timer: true #pause timer
enable_stray_cleanup: false #stray processes cleanup
enable_svs_alternative: false #start/stop microservices using alternative script
log_diskspace_minimum: 2097152000 #2GB
Expand Down
12 changes: 10 additions & 2 deletions playbooks/viya-mmsu/viya-svs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ do_stopcas()
do_stop()
{
local LIST=$*
NLIST=
local NLIST=
for p in $LIST
do
if [[ $p =~ -viya-all-services|-consul-|-vault-|-httpproxy-|-rabbitmq-|-sasdatasvrc- ]]; then
Expand All @@ -51,6 +51,13 @@ do_stop()
do_startmt()
{
local LIST=$(ls sas-*-all-services 2>/dev/null| grep -v '\-viya\-')
if [[ -x "sas-viya-runlauncher-default" ]]; then
LIST="sas-viya-runlauncher-default $LIST"
fi
if [[ -x "sas-viya-spawner-default" ]]; then
LIST="sas-viya-spawner-default $LIST"
fi

do_start_common "$LIST"
}

Expand Down Expand Up @@ -152,7 +159,8 @@ do_svastatus()

for f in $LIST
do
/etc/init.d/$f status|sed "s|sas-services completed|$f completed|"
/etc/init.d/$f status| sed "s|sas-viya-all-services completed|$f completed|;\
s|sas-services completed|$f completed|"
done
return 0
}
Expand Down
2 changes: 1 addition & 1 deletion playbooks/viya-upgrade/archive_obsolete_log_folders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
loop: "{{folders_to_archive}}"
register: package_status_rhel
ignore_errors: true
when: ansible_distribution == redhat_os_name|string or ansible_distribution == oracle_os_name|string
when: ansible_os_family == redhat_os_name|string or ansible_os_family == oracle_os_name|string
check_mode: no

- name: "Create archive directory, {{viya_log_archive_path}}, if it doesn't exist"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
- SAS_ADMIN_PASSWORD | default('') != ''
- mm_exists is defined
- mm_exists == true
- model_rep_version is defined
- model_rep_version is version(modelrepo_shipped_version, '<')

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

0 comments on commit 44fc588

Please sign in to comment.