Project

General

Profile

Actions

Bug #13940

closed

Subnet creation with associated domains fails (hammer cli)

Added by Alexandre Barth almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

hammer -u admin -p changeme subnet create --name DATA --network 192.168.0.0 --mask 255.255.255.0 --gateway 192.168.0.254 --dns-primary 192.168.1.1 --dns-secondary 192.168.1.2 --from 192.168.0.1 --to 192.168.0.253 --vlanid 2 --dhcp-id 1 --tftp-id 1 --domains foo.com
Could not create the subnet:
Subnet domains is invalid
Subnet domains is invalid

But this works :
hammer -u admin -p changeme subnet create --name DATA --network 192.168.0.0 --mask 255.255.255.0 --gateway 192.168.0.254 --dns-primary 192.168.1.1 --dns-secondary 192.168.1.2 --from 192.168.0.1 --to 192.168.0.253 --vlanid 2 --dhcp-id 1 --tftp-id 1
Subnet created
hammer -u admin -p changeme subnet update --name DATA --domains foo.com
Subnet updated

The first command used to work in foreman 1.10 and previous releases.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #13711: Can't create new subnet with domainClosedMarek Hulán02/15/2016Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Is duplicate of Bug #13711: Can't create new subnet with domain added
Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Duplicate

Thanks for the report Alexandre. We're tracking this under #13711 with a possible fix, but since you reported it's newly broken in 1.11, I've added it to the release blockers.

Actions

Also available in: Atom PDF