Skip to content

Commit

Permalink
add cloud and payg checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Aug 16, 2023
1 parent 7343181 commit 5c72f8d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- add cloud and payg checks
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@ if which podman >/dev/null 2>&1; then
plugin_command "podman logs $CONTAINER"
done
fi

section_header "Cloud / PAYG"
plugin_command "test -e /usr/bin/instance-flavor-check && /usr/bin/instance-flavor-check"
validate_rpm_if_installed "python-instance-billing-flavor-check"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- add cloud and payg checks
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,15 @@ plugin_command "echo \"select username scc_org from susecredentials sc join suse

plugin_command "echo \"Number of elements in table susesaltevent. If the next number is too high, please verify the large scale tuning guide property 'java.salt_event_thread_pool_size'.\""
plugin_command "echo \"select count(*) from susesaltevent;\" | spacewalk-sql --select-mode-direct -"
plugin_command "grep \"Client bootstrap script\" /srv/www/htdocs/pub/bootstrap/*.sh"

section_header "Cloud / PAYG"
plugin_command "/usr/bin/instance-flavor-check"
if [ -e /usr/bin/instance-flavor-check -a $(/usr/bin/instance-flavor-check) == "PAYG" ]; then
validate_rpm "python-instance-billing-flavor-check"
validate_rpm "billing-data-service"
fi

plugin_command "/sbin/supportconfig-sumalog $LOG"
plugin_command "cp /var/log/zypper.log $LOG"
plugin_command "grep \"Client bootstrap script\" /srv/www/htdocs/pub/bootstrap/*.sh"

0 comments on commit 5c72f8d

Please sign in to comment.