Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
48b5948
bump API
david-crespo Jan 26, 2022
f40a629
automatically update packer-id
github-actions[bot] Jan 26, 2022
e04d6a2
bump api again for sled agent sim fix
david-crespo Jan 27, 2022
d78e1e4
automatically update packer-id
github-actions[bot] Jan 27, 2022
fbf6d4a
force packer rebuild and deploy
david-crespo Jan 27, 2022
293403f
automatically update packer-id
github-actions[bot] Jan 27, 2022
8049954
try adding a sleep before making API calls to populate db
david-crespo Jan 27, 2022
8b85cb0
automatically update packer-id
github-actions[bot] Jan 27, 2022
81127b6
update API again to get new log line
david-crespo Jan 27, 2022
db56890
automatically update packer-id
github-actions[bot] Jan 27, 2022
5a792b8
again
david-crespo Jan 27, 2022
d2af36d
automatically update packer-id
github-actions[bot] Jan 27, 2022
d65720a
again again
david-crespo Jan 27, 2022
fb29939
automatically update packer-id
github-actions[bot] Jan 27, 2022
85f2b09
update for dockerfil with no cmd
david-crespo Jan 27, 2022
5db1c9b
automatically update packer-id
github-actions[bot] Jan 27, 2022
bcc9ede
Revert "automatically update packer-id"
david-crespo Jan 27, 2022
53b9596
Revert "update for dockerfil with no cmd"
david-crespo Jan 27, 2022
cf58ef0
automatically update packer-id
github-actions[bot] Jan 27, 2022
f7d316a
update to latest main, let's just be done
david-crespo Jan 31, 2022
239e471
automatically update packer-id
github-actions[bot] Jan 31, 2022
7654322
Merge main into bump-api
david-crespo Jan 31, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/packer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
CLOUDFLARE_TOKEN: ${{secrets.CLOUDFLARE_TOKEN}}
SSL_CERT: ${{secrets.SSL_CERT}}
SSL_KEY: ${{secrets.SSL_KEY}}
API_VERSION: a75149c4b84b51647928c2c3484dc4370495f023
API_VERSION: c4e76cb01fa791c4dc9722072800c8969397aa03

# get the image information from gcloud
- name: Get image information
Expand Down
1 change: 1 addition & 0 deletions app/components/StatusBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const INSTANCE_COLORS: Record<InstanceState, BadgeColor> = {
stopping: 'yellow',
stopped: 'lightGray',
repairing: 'blue',
migrating: 'yellow',
failed: 'red',
destroyed: 'darkGray',
}
Expand Down
39 changes: 35 additions & 4 deletions libs/api/__generated__/Api.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/api/__generated__/OMICRON_VERSION

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packer/oxapi_demo
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ INSTANCES
instance_create_demo ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME
instance_get ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME
instance_delete ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME
instance_migrate ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME SLED_ID

instance_stop ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME
instance_start ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME
Expand Down Expand Up @@ -278,6 +279,13 @@ function cmd_instance_delete
do_curl "/organizations/$1/projects/$2/instances/$3" -X DELETE
}

function cmd_instance_migrate
{
[[ $# != 4 ]] && usage "expected ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME SLED_ID"
mkjson dst_sled_uuid="$4" | \
do_curl "/organizations/$1/projects/$2/instances/$3/migrate" -X POST -T -
}

function cmd_instance_stop
{
[[ $# != 3 ]] && usage "expected ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME"
Expand Down
2 changes: 1 addition & 1 deletion tools/create_gcp_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ retry 2 gcloud compute instances create "$INSTANCE_NAME" \
--description="Machine automatically generated from branch ${BRANCH_NAME} of the oxidecomputer/console git repo." \
--hostname="${INSTANCE_NAME}.internal.oxide.computer" \
--zone=$ZONE \
--image=packer-1643233699 \
--image=packer-1643643314 \
--maintenance-policy=TERMINATE \
--restart-on-failure \
--machine-type=$INSTANCE_TYPE \
Expand Down