Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkSubnet: Attribute must be a whole number #505

Closed
yellowhat opened this issue May 13, 2024 · 2 comments
Closed

NetworkSubnet: Attribute must be a whole number #505

yellowhat opened this issue May 13, 2024 · 2 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@yellowhat
Copy link

What happened?

Hi,
consider the following example code.

With the latest 1.19.0, on pulumi up I get the following error:

Diagnostics:
  hcloud:index:NetworkSubnet (foonet):
    error: hcloud:index/networkSubnet:NetworkSubnet resource 'foonet' has a problem: Attribute must be a whole number, got 4229314. Examine values at 'foonet.networkId'.

Instead if I downgrade to 1.18.1 it works as expected.

Thanks

Example

import pulumi_hcloud as hcloud

mynet = hcloud.Network(
    "mynet",
    name="my-net",
    ip_range="10.0.0.0/8",
)

foonet = hcloud.NetworkSubnet(
    "foonet",
    network_id=mynet.id,
    type="cloud",
    network_zone="eu-central",
    ip_range="10.0.1.0/24",
)

Output of pulumi about

CLI          
Version      3.115.2
Go Version   go1.22.2
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  command     0.10.0
resource  hcloud      1.19.0
resource  kubernetes  4.11.0
language  python      unknown

Host     
OS       fedora
Version  40
Arch     x86_64

This project is written in python: executable='/usr/bin/python3' version='3.12.3'

Current Stack: organization/hetzner-k8s/dev

TYPE                          URN
pulumi:pulumi:Stack           urn:pulumi:dev::hetzner-k8s::pulumi:pulumi:Stack::hetzner-k8s-dev
pulumi:providers:hcloud       urn:pulumi:dev::hetzner-k8s::pulumi:providers:hcloud::default_1_19_0
hcloud:index/network:Network  urn:pulumi:dev::hetzner-k8s::hcloud:index/network:Network::mynet


Found no pending operations associated with dev

Backend        
Name           1092c12381af
URL            file://~
User           root
Organizations  
Token type     personal

Dependencies:
NAME               VERSION
ansible-core       2.16.6
argcomplete        3.3.0
kubernetes         29.0.0
libdnf5            5.1.17
pip                23.3.2
pulumi_command     0.10.0
pulumi_hcloud      1.19.0
pulumi_kubernetes  4.11.0
wheel              0.41.2

Pulumi locates its logs in /tmp by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@yellowhat yellowhat added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels May 13, 2024
@yellowhat yellowhat changed the title NetworkSubnet: Attribute must be a whole number NetworkSubnet: Attribute must be a whole number May 13, 2024
@VenelinMartinov
Copy link
Contributor

Hi @yellowhat, sorry you are having issues here and thanks for reporting! This looks like pulumi/pulumi-terraform-bridge#1940 which is fixed on main but has not yet been released.

I've just kicked off a release and this will be fixed in 1.19.1 after https://github.com/pulumi/pulumi-hcloud/actions/runs/9062334519 completes

@VenelinMartinov VenelinMartinov self-assigned this May 13, 2024
@VenelinMartinov VenelinMartinov removed the needs-triage Needs attention from the triage team label May 13, 2024
@VenelinMartinov
Copy link
Contributor

https://github.com/pulumi/pulumi-hcloud/releases/tag/v1.19.1 was released which includes a fix for the problem. LMK if you are still having issues with this.

@VenelinMartinov VenelinMartinov added the resolution/fixed This issue was fixed label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

2 participants