Git Product home page Git Product logo

flatcar-cloud-image-uploader's People

Contributors

christianhuening avatar iaguis avatar invidian avatar ribbybibby avatar t-lo avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flatcar-cloud-image-uploader's Issues

GCP Oauth2 not working anymore

Description

The Google Oauth2 Authentication does not work anymore as the used sdk is outdated.

Impact

tool not working

Environment and steps to reproduce

  1. try to update flatcar image on GCP
  2. attempt to authenticate with google oaut2
  3. fail

Expected behavior

dont fail on point 3.

Add cleanup subcommand

For testing, it would be nice to have a built-in command which removes uploaded image, so the whole cycle can be automatically tested.

image create with typo in family name

looks like a typo in the family name .. (and it is exposed in the image list on google cloud console)

image

if [[ "$CREATE_IMAGE" = true ]]; then
echo "Creating compute image from uploaded image."
gcloud compute images create $IMAGE_NAME
--source-uri $BUCKET_IMAGE_PATH
--family flarcar-linux
fi

Image creation on GCP failed with error

Description

Using the latest tag of the google-image-uploader failed in the final step of image creation after upload

Impact

can't completely create flatcar linux image in GCP image repo

Environment and steps to reproduce

  1. Action(s): Run docker run -it quay.io/kinvolk/google-cloud-flatcar-image-upload --bucket-name <bucket-id --project-id <project-id>
  2. Error:
Uploading an image to the bucket.
Copying file://flatcar_production_gce.tar.gz [Content-Type=application/x-tar]...
- [1 files][633.2 MiB/633.2 MiB]    2.2 MiB/s
Operation completed over 1 objects/633.2 MiB.
/google-cloud-sdk/lib/third_party/ipaddress/__init__.py:1106: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise TypeError("%s and %s are not of the same version" (a, b))
ERROR: (gcloud.compute.images.describe) Could not fetch resource:
 - The resource 'projects/fcloud-garden/global/images/flatcar-stable' was not found

Expected behavior
Expected to see this:

Creating compute image from uploaded image.
Created [https://www.googleapis.com/compute/v1/projects/my-project/global/images/flatcar-stable].
NAME            PROJECT        FAMILY         DEPRECATED  STATUS
flatcar-stable  my-project  flatcar-linux              READY

Additional information

I rebuild the upload image locally with the google/cloud-sdk:335.0.0-alpine and everything worked. Probably just a rebuild with your present Dockerfile is required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.