#4317 Allow --ip-address even when not present in local interface
Closed: fixed 6 years ago Opened 10 years ago by mkosek.

Cloud VM instances (in OpenStack or EC2) often have a concept of private IP address assigned to it's network interfaces and a public IP address that can be assigned to a VM. The public IP is just routed to the VM and thus not present in the interfaces.

ipa-server-install --ip-address=PUBLIC_IP fails in that case and the IP address of the server needs to be reassigned after the installation:

# ipa-server-install --setup-dns --ip-address 1.2.3.4
Usage: ipa-server-install [options]

ipa-server-install: error: option --ip-address: invalid IP address 1.2.3.4: No network interface matches the provided IP address and netmask

It would be better to turn the error just in a warning and let Administrator use the value when sure it is the right address.


Moving to OpenStack integration bucket. As discussed on the triage, it would be preferred if a --force option is added, instead of just a warning.

Metadata Update from @mkosek:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA OpenStack Integration

7 years ago

Metadata Update from @mbasti:
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.5.2 (was: FreeIPA OpenStack Integration)

6 years ago

master:

  • 6637980 Only warn when specified server IP addresses don't match intf

ipa-4-5:

  • 6206ac8 Only warn when specified server IP addresses don't match intf

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Reopening, fix for this causes additional issues

Metadata Update from @mbasti:
- Issue status updated to: Open (was: Closed)

6 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.5.3 (was: FreeIPA 4.5.2)

6 years ago

master:

  • 82ad586 Fix local IP address validation
  • cb48a49 ipa-dns-install: remove check for local ip address
  • 0b69e44 refactor CheckedIPAddress class
  • 6024165 CheckedIPAddress: remove match_local param
  • f9cba7d Remove ip_netmask from option parser
  • 1b8dc11 replica install: add missing check for non-local IP address
  • f353729 Remove network and broadcast address warnings

ipa-4-5:

  • d010191 Fix local IP address validation
  • 4d06f0c ipa-dns-install: remove check for local ip address
  • 0aa0041 refactor CheckedIPAddress class
  • 9a924dd CheckedIPAddress: remove match_local param
  • 217905a Remove ip_netmask from option parser
  • 93ef102 replica install: add missing check for non-local IP address
  • 1c96116 Remove network and broadcast address warnings

Metadata Update from @dkupka:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata