Skip to content

Script will not fail if cluster is down. #1

Description

@mattmattox

The script currently assumes the downstream cluster up and healthy when running the namespace checks and creation. This is a problem as the error handling around the "Checking if namespace exists..." takes the timeout error as the namespace doesn't exist and tries to create it. And of course, the script can't because the cluster is offline.

I need to add a check that makes sure the cluster up and active in Rancher early on in the process.

Verifying project SupportTools...
Successfully found project SupportTools
Getting project info...
Project id: c-m-xrlzhb9p:p-6pdz9
Checking if namespace mmattox-testing exists...
parse error: Invalid numeric literal at line 1, column 5
Namespace mmattox-testing already exists
Assigning namespace mmattox-testing to project SupportTools...
Collecting namespace details...
Project long: c-m-xrlzhb9p:p-6pdz9
Project short: p-6pdz9
parse error: Invalid numeric literal at line 1, column 5
Updating namespace...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions