cluster-api-provider-vsphere icon indicating copy to clipboard operation
cluster-api-provider-vsphere copied to clipboard

Fail to assign static ipv6 address to cluster vm

Open luniHw opened this issue 5 years ago • 5 comments
trafficstars

/kind bug

What steps did you take and what happened: Static ipv6 address is not assigned to cluster vm when creating photon k8s cluster.

What did you expect to happen: Succeed to create k8s cluster with an all-IPv6 topology

Anything else you would like to add:

Environment:

  • Cluster-api-provider-vsphere version: capv 0.5.4
  • Kubernetes version: (use kubectl version): v1.16.4+vmware.1.1
  • OS photon: http://dl.bintray.com/vmware/photon/3.0/Rev2/iso/photon-minimal-3.0-58f9c74.iso cloud-init: 19.2-36-g059d049c-0ubuntu2~18.04.1

luniHw avatar Feb 21 '20 11:02 luniHw

@luniHw - do you have any logs, especially ones of cloud init ?

yastij avatar Feb 21 '20 12:02 yastij

see #756

yastij avatar Feb 24 '20 21:02 yastij

see #756 @yastij in capv 0.5.5, use can customize the device name in manifests?

luniHw avatar Feb 27 '20 06:02 luniHw

you should be able to configure the following on the vsphereMachine:

type NetworkDeviceSpec struct {
	// NetworkName is the name of the vSphere network to which the device
	// will be connected.
	NetworkName string `json:"networkName"`

	// DHCP4 is a flag that indicates whether or not to use DHCP for IPv4
	// on this device.
	// If true then IPAddrs should not contain any IPv4 addresses.
	// +optional
	DHCP4 bool `json:"dhcp4,omitempty"`

	// DHCP6 is a flag that indicates whether or not to use DHCP for IPv6
	// on this device.
	// If true then IPAddrs should not contain any IPv6 addresses.
	// +optional
	DHCP6 bool `json:"dhcp6,omitempty"`

	// Gateway4 is the IPv4 gateway used by this device.
	// Required when DHCP4 is false.
	// +optional
	Gateway4 string `json:"gateway4,omitempty"`

	// Gateway4 is the IPv4 gateway used by this device.
	// Required when DHCP6 is false.
	// +optional
	Gateway6 string `json:"gateway6,omitempty"`

	// IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign
	// to this device.
	// Required when DHCP4 and DHCP6 are both false.
	// +optional
	IPAddrs []string `json:"ipAddrs,omitempty"`

	// MTU is the device’s Maximum Transmission Unit size in bytes.
	// +optional
	MTU *int64 `json:"mtu,omitempty"`

	// MACAddr is the MAC address used by this device.
	// It is generally a good idea to omit this field and allow a MAC address
	// to be generated.
	// Please note that this value must use the VMware OUI to work with the
	// in-tree vSphere cloud provider.
	// +optional
	MACAddr string `json:"macAddr,omitempty"`

	// Nameservers is a list of IPv4 and/or IPv6 addresses used as DNS
	// nameservers.
	// Please note that Linux allows only three nameservers (https://linux.die.net/man/5/resolv.conf).
	// +optional
	Nameservers []string `json:"nameservers,omitempty"`

	// Routes is a list of optional, static routes applied to the device.
	// +optional
	Routes []NetworkRouteSpec `json:"routes,omitempty"`

	// SearchDomains is a list of search domains used when resolving IP
	// addresses with DNS.
	// +optional
	SearchDomains []string `json:"searchDomains,omitempty"`
}

yastij avatar Mar 03 '20 12:03 yastij

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Jul 27 '20 18:07 fejta-bot

/assign @lubronzhan

can you confirm this works these days so we can close this out?

randomvariable avatar Aug 03 '23 17:08 randomvariable

Yeah this works now. Please close it

lubronzhan avatar Aug 04 '23 04:08 lubronzhan

Thx!

/close

sbueringer avatar Aug 04 '23 06:08 sbueringer

@sbueringer: Closing this issue.

In response to this:

Thx!

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 04 '23 06:08 k8s-ci-robot