Bug 809964
Summary: | When using ovirt-engine-cli, create network throws exception: "ERROR: null value in column "network_id" violates not-null constraint" | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Andrey Falko <afalko> |
Component: | ovirt-engine-cli | Assignee: | Michael Pasternak <mpastern> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | acathrow, bazulay, dyasny, iheim, mgoldboi, ykaul |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-06 08:33:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrey Falko
2012-04-04 18:39:46 UTC
well, few problems in your flow: 1. in ovirt/rhevm network added to cluster by two steps: a. create network in DC b. attach it to cluster in your example you doing /b/ bypassing /a/ 2. in --data_center-name you pass ID => "a918c089-52b5-494f-9b27-093a2188eb87" instead of DC name since our backend is a restful app. network created and attached in/to collection using HTTP POST method which in terms of cli is /create/ command, i.e a. create network in DC ======================= [oVirt shell (connected)]# create network --data_center-name Default_fcp --name my_network id : b383e538-e7f5-4e94-bc0a-3a3f1c2bb176 name : my_network data_center-id: c747d78b-ee6a-485c-8f81-1b9d46be51e9 display : False status-state : non_operational stp : False b. attach it to cluster ======================= [oVirt shell (connected)]# create network --data_center-name Default_fcp --name my_network --cluster-identifier Default_fcp id : b383e538-e7f5-4e94-bc0a-3a3f1c2bb176 name : my_network cluster-id : 6d62f320-346e-11e1-90fa-174931f86577 data_center-id: c747d78b-ee6a-485c-8f81-1b9d46be51e9 display : False status-state : operational stp : False next time please use help, it would give the list option to use for both create/attach |