Project

General

Profile

Bug #28130

[GCE] Always any selected image type is being selected as f1-micro.

Added by Jitendra Yejare 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Compute resources - GCE
Target version:
-

Description

Description:
-------------------
GCE hammer always selects f1-micro image type regardless of requested image type,

How Reproducible:
-------------------
Always

Steps:
-------------------
1. Provision a GCE host from a hammer with the image anything other than f1-micro type.
  1. hammer host create --architecture-id 1 --build true --compute-attributes 'machine_type=n1-standard-2, network=default, associate_external_ip=true' --compute-resource-id 1 --domain-id 1 --image-id 1 --operatingsystem-id 1 --provision-method image --puppet-ca-proxy-id 1 --puppet-environment-id 1 --puppet-proxy-id 1 --root-password changeme --volume 'size_gb=13, size_gb=11' --location-id 2 --organization-id 1 --name gcePlus1

Actual Behavior:
-------------------
1. The GCE Host is provisioned but the image type in provisioned is f1-micro always.

Expected Behavior:
--------------------
1. The GCE host should be provisioned with the requested image type in the hammer command.

Associated revisions

Revision 3c9cf5ac (diff)
Added by Kavita Gaikwad 7 months ago

Fixes #28130 - show selected machine_type on GCE host edit form

History

#1 Updated by Oleh Fedorenko 8 months ago

Hi Jitendra,

have you tried to create a vm the same way but via direct API calls with the same parameters?

If so, does it behaves the same way?

#2 Updated by Jitendra Yejare 8 months ago

Oleh Fedorenko wrote:

Hi Jitendra,

have you tried to create a vm the same way but via direct API calls with the same parameters?

If so, does it behaves the same way?

I have not tried GCE Host provisioning from API yet but will try and reply with my comments here. Thanks

#3 Updated by Kavita Gaikwad 8 months ago

  • Triaged changed from No to Yes

I have tested this scenario and found that this is not an issue on Hammer side. It should be fixed in Foreman core.

#4 Updated by Oleh Fedorenko 8 months ago

  • Category changed from Hosts to Compute resources - GCE
  • Subject changed from [Hammer] [GCE] Always any selected image type is being selected as f1-micro. to [GCE] Always any selected image type is being selected as f1-micro.
  • Project changed from Hammer CLI to Foreman

#5 Updated by Kavita Gaikwad 8 months ago

  • Priority changed from High to Normal

Modifying priority to Normal as on edit form it is not showing correct selected value.

#6 Updated by Kavita Gaikwad 8 months ago

  • Bugzilla link set to 1775616

#7 Updated by Kavita Gaikwad 8 months ago

  • Assignee set to Kavita Gaikwad

#8 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7202 added

#9 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases 2.0.0 added

#10 Updated by Kavita Gaikwad 7 months ago

  • Status changed from Ready For Testing to Closed

#11 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7267 added

#12 Updated by Anonymous 7 months ago

  • Fixed in Releases 1.24.1 added

Also available in: Atom PDF