[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Michael.Wagenknecht
Hi Shani,
thank you very much for your respond.
But I don’t have this parameter because it is no iSCSI LUN, it is a 
FibreChannel (FCP) LUN. I only have the ID of the LUN.

Best Regards,
Michael

Von: Shani Leviim 
Gesendet: Sonntag, 27. Februar 2022 18:26
An: Wagenknecht, Michael (ik4-sv) 
Cc: users 
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

Hi Michael,
When creating a direct lun, for each , you should mention the 
address, port, and target.
You can follow the example here [1] under 'Adding a new direct LUN disk'

[1] 
http://ovirt.github.io/ovirt-engine-api-model/master/#services/disks/methods/add

Regards,
Shani Leviim


On Fri, Feb 25, 2022 at 11:23 PM 
mailto:michael.wagenkne...@continentale.de>>
 wrote:
Hi,
I tried to create a new Fibre Channel Direct LUN with the API. But it doesn't 
work. My command is:

curl -s \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header 'Version: 4' \
--header 'Accept: application/xml' \
--user 'admin@internal:XX' \
--data '

  DX600RZ2_OLVM_Test
  DX600RZ2_OLVM_Test
  
fcp

  
  

  

' \
https://olvmmanager/ovirt-engine/api/disks

I think there are parameter missing. But I can't find a working example.
Please help.

Best Regards,
Michael
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ALULJGAU4NQVO56IQHRBR26HPOCVYPOP/


[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Michael.Wagenknecht
Hi Shani,
I don’t get an answer of the request and the engine log only shows login and 
logout information:

2022-02-28 12:17:41,462+01 INFO  
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-122) 
[7c21a2a9] User admin@internal successfully logged in with scopes: 
ovirt-app-api ovirt-ext=token-info:authz-search 
ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 
ovirt-ext=token:password-access
2022-02-28 12:17:41,479+01 INFO  
[org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-100) 
[36503279] Running command: CreateUserSessionCommand internal: false.
2022-02-28 12:17:41,487+01 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-100) [36503279] EVENT_ID: USER_VDC_LOGIN(30), User admin@internal-authz 
connecting from '10.0.16.40' using session 
'u1eCOkzOBRhTsV5uJZp0n3CBjuu9tta2PQi5oUVX73KoaB9OTl9OB36GCJDagWYYAVIpWsk9ua6TEP9+r0o9sg=='
 logged in.
2022-02-28 12:17:41,493+01 INFO  
[org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-100) 
[76b5f2e4] Running command: LogoutSessionCommand internal: false.
2022-02-28 12:17:41,498+01 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-100) [76b5f2e4] EVENT_ID: USER_VDC_LOGOUT(31), User admin@internal-authz 
connected from '10.0.16.40' using session 
'u1eCOkzOBRhTsV5uJZp0n3CBjuu9tta2PQi5oUVX73KoaB9OTl9OB36GCJDagWYYAVIpWsk9ua6TEP9+r0o9sg=='
 logged out.
2022-02-28 12:17:43,907+01 INFO  
[org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-100) [] 
User admin@internal successfully logged out
2022-02-28 12:17:43,916+01 INFO  
[org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default 
task-122) [760703f6] Running command: TerminateSessionsForTokenCommand 
internal: true.

Best Regards,
Michael

Von: Shani Leviim 
Gesendet: Montag, 28. Februar 2022 11:56
An: Wagenknecht, Michael (ik4-sv) 
Cc: users 
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

Can you please share the request result / relevant part of the engine log?
it might indicate the missing parameter.

Regards,
Shani Leviim


On Mon, Feb 28, 2022 at 11:12 AM 
mailto:michael.wagenkne...@continentale.de>>
 wrote:
Hi Shani,
thank you very much for your respond.
But I don’t have this parameter because it is no iSCSI LUN, it is a 
FibreChannel (FCP) LUN. I only have the ID of the LUN.

Best Regards,
Michael

Von: Shani Leviim mailto:slev...@redhat.com>>
Gesendet: Sonntag, 27. Februar 2022 18:26
An: Wagenknecht, Michael (ik4-sv) 
mailto:michael.wagenkne...@continentale.de>>
Cc: users mailto:users@ovirt.org>>
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

Hi Michael,
When creating a direct lun, for each , you should mention the 
address, port, and target.
You can follow the example here [1] under 'Adding a new direct LUN disk'

[1] 
http://ovirt.github.io/ovirt-engine-api-model/master/#services/disks/methods/add

Regards,
Shani Leviim


On Fri, Feb 25, 2022 at 11:23 PM 
mailto:michael.wagenkne...@continentale.de>>
 wrote:
Hi,
I tried to create a new Fibre Channel Direct LUN with the API. But it doesn't 
work. My command is:

curl -s \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header 'Version: 4' \
--header 'Accept: application/xml' \
--user 'admin@internal:XX' \
--data '

  DX600RZ2_OLVM_Test
  DX600RZ2_OLVM_Test
  
fcp

  
  

  

' \
https://olvmmanager/ovirt-engine/api/disks

I think there are parameter missing. But I can't find a working example.
Please help.

Best Regards,
Michael
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 

[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Michael.Wagenknecht
Hi Shani,
Yes I can add a LUN manually in the GUI.

With the verbose parameter I get some information when I run the command:



For correct usage, see: 
https://olvmmanager.continentale.loc/ovirt-engine/apidoc#services/disks/methods/add
Request syntactically incorrect.

* Closing connection 0

But I can’t find a syntax error.

In your last post you use the URL 
“https:///ovirt-engine/api”. Is this correct?
I think the correct URL is “https:///ovirt-engine/api/disks”

Best Regards,
Michael

Von: Shani Leviim 
Gesendet: Montag, 28. Februar 2022 15:31
An: Wagenknecht, Michael (ik4-sv) 
Cc: users 
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

I was able to use your parameters and create the FC with the mentioned LUN. [1]
- Are you able to add it manually from the UI?
- The only difference I can think of is the headers, maybe adding the URL 
address, "--verbose" and "Content-Type: application/xml" [2] will show the 
missing info?

[1]



...

DX600RZ2_OLVM_Test




DX600RZ2_OLVM_Test
data



false
3e779a94-6590-40f0-b0cf-273fc298aa63
0
0



false
false
lun
false



[2]
url="https://****/ovirt-engine/api"
user="admin@internal"
password="**"
curl \
--verbose \
--cacert /etc/pki/ovirt-engine/ca.pem \
--user "${user}:${password}" \
--request POST \
--header "Content-Type: application/xml" \
--header "Accept: application/xml" \
--data '

Regards,
Shani Leviim

On Fri, Feb 25, 2022 at 11:23 PM 
mailto:michael.wagenkne...@continentale.de>>
 wrote:
Hi,
I tried to create a new Fibre Channel Direct LUN with the API. But it doesn't 
work. My command is:

curl -s \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header 'Version: 4' \
--header 'Accept: application/xml' \
--user 'admin@internal:XX' \
--data '

  DX600RZ2_OLVM_Test
  DX600RZ2_OLVM_Test
  
fcp

  
  

  

' \
https://olvmmanager/ovirt-engine/api/disks

I think there are parameter missing. But I can't find a working example.
Please help.

Best Regards,
Michael
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZUHA4GC4W6MZC2OYDSKEBDEEMPGPDGVS/


[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Shani Leviim
I was able to use your parameters and create the FC with the mentioned LUN.
[1]
- Are you able to add it manually from the UI?
- The only difference I can think of is the headers, maybe adding the URL
address, "--verbose" and "Content-Type: application/xml" [2] will show the
missing info?

[1]



...

DX600RZ2_OLVM_Test




DX600RZ2_OLVM_Test
data



false
3e779a94-6590-40f0-b0cf-273fc298aa63
0
0



false
false
*lun*
false



[2]
*url="https://**/ovirt-engine/api"*
user="admin@internal"
password="**"
curl \
--*verbose* \
--cacert /etc/pki/ovirt-engine/ca.pem \
--user "${user}:${password}" \
--request POST \
*--header "Content-Type: application/xml" \*
--header "Accept: application/xml" \
--data '


*Regards,*

*Shani Leviim*


On Fri, Feb 25, 2022 at 11:23 PM 
wrote:

> Hi,
> I tried to create a new Fibre Channel Direct LUN with the API. But it
> doesn't work. My command is:
>
> curl -s \
> --cacert '/etc/pki/ovirt-engine/ca.pem' \
> --request POST \
> --header 'Version: 4' \
> --header 'Accept: application/xml' \
> --user 'admin@internal:XX' \
> --data '
> 
>   DX600RZ2_OLVM_Test
>   DX600RZ2_OLVM_Test
>   
> fcp
> 
>   
>   
> 
>   
> 
> ' \
> https://olvmmanager/ovirt-engine/api/disks
>
> I think there are parameter missing. But I can't find a working example.
> Please help.
>
> Best Regards,
> Michael
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/RJTINLYPALPPINJ5CEM7AUAWTQKSWY2Y/


[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Michael.Wagenknecht
Hi Shani,
the problem is solved. It was a syntax error: in the row  
I forget a slash at the end.
The correct row is: 

Thank you very much helping me.

Best Regards,
Michael

Von: Shani Leviim 
Gesendet: Montag, 28. Februar 2022 15:31
An: Wagenknecht, Michael (ik4-sv) 
Cc: users 
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

I was able to use your parameters and create the FC with the mentioned LUN. [1]
- Are you able to add it manually from the UI?
- The only difference I can think of is the headers, maybe adding the URL 
address, "--verbose" and "Content-Type: application/xml" [2] will show the 
missing info?

[1]



...

DX600RZ2_OLVM_Test




DX600RZ2_OLVM_Test
data



false
3e779a94-6590-40f0-b0cf-273fc298aa63
0
0



false
false
lun
false



[2]
url="https://****/ovirt-engine/api"
user="admin@internal"
password="**"
curl \
--verbose \
--cacert /etc/pki/ovirt-engine/ca.pem \
--user "${user}:${password}" \
--request POST \
--header "Content-Type: application/xml" \
--header "Accept: application/xml" \
--data '

Regards,
Shani Leviim

On Fri, Feb 25, 2022 at 11:23 PM 
mailto:michael.wagenkne...@continentale.de>>
 wrote:
Hi,
I tried to create a new Fibre Channel Direct LUN with the API. But it doesn't 
work. My command is:

curl -s \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header 'Version: 4' \
--header 'Accept: application/xml' \
--user 'admin@internal:XX' \
--data '

  DX600RZ2_OLVM_Test
  DX600RZ2_OLVM_Test
  
fcp

  
  

  

' \
https://olvmmanager/ovirt-engine/api/disks

I think there are parameter missing. But I can't find a working example.
Please help.

Best Regards,
Michael
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3IC5XFCLUAV5DQOZW4AOBPPNZCJF42DG/


[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Shani Leviim
Can you please share the request result / relevant part of the engine log?
it might indicate the missing parameter.


*Regards,*

*Shani Leviim*


On Mon, Feb 28, 2022 at 11:12 AM 
wrote:

> Hi Shani,
>
> thank you very much for your respond.
>
> But I don’t have this parameter because it is no iSCSI LUN, it is a
> FibreChannel (FCP) LUN. I only have the ID of the LUN.
>
>
>
> Best Regards,
>
> Michael
>
>
>
> *Von:* Shani Leviim 
> *Gesendet:* Sonntag, 27. Februar 2022 18:26
> *An:* Wagenknecht, Michael (ik4-sv) 
> *Cc:* users 
> *Betreff:* Re: [ovirt-users] How to create a new Direct LUN with the API
>
>
>
> Hi Michael,
>
> When creating a direct lun, for each , you should mention
> the address, port, and target.
>
> You can follow the example here [1] under 'Adding a new direct LUN disk'
>
> [1]
> http://ovirt.github.io/ovirt-engine-api-model/master/#services/disks/methods/add
> 
>
>
>
> *Regards,*
>
> *Shani Leviim*
>
>
>
>
>
> On Fri, Feb 25, 2022 at 11:23 PM 
> wrote:
>
> Hi,
> I tried to create a new Fibre Channel Direct LUN with the API. But it
> doesn't work. My command is:
>
> curl -s \
> --cacert '/etc/pki/ovirt-engine/ca.pem' \
> --request POST \
> --header 'Version: 4' \
> --header 'Accept: application/xml' \
> --user 'admin@internal:XX' \
> --data '
> 
>   DX600RZ2_OLVM_Test
>   DX600RZ2_OLVM_Test
>   
> fcp
> 
>   
>   
> 
>   
> 
> ' \
> https://olvmmanager/ovirt-engine/api/disks
> 
>
> I think there are parameter missing. But I can't find a working example.
> Please help.
>
> Best Regards,
> Michael
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> 
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> 
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
> 
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NZOZNX3OC5P7KUVL4QYOCKBYPYJDW4WA/


[ovirt-users] Re: How to create a new Direct LUN with the API

2022-03-02 Thread Shani Leviim
Hi Michael,
When creating a direct lun, for each , you should mention the
address, port, and target.
You can follow the example here [1] under 'Adding a new direct LUN disk'

[1]
http://ovirt.github.io/ovirt-engine-api-model/master/#services/disks/methods/add


*Regards,*

*Shani Leviim*


On Fri, Feb 25, 2022 at 11:23 PM 
wrote:

> Hi,
> I tried to create a new Fibre Channel Direct LUN with the API. But it
> doesn't work. My command is:
>
> curl -s \
> --cacert '/etc/pki/ovirt-engine/ca.pem' \
> --request POST \
> --header 'Version: 4' \
> --header 'Accept: application/xml' \
> --user 'admin@internal:XX' \
> --data '
> 
>   DX600RZ2_OLVM_Test
>   DX600RZ2_OLVM_Test
>   
> fcp
> 
>   
>   
> 
>   
> 
> ' \
> https://olvmmanager/ovirt-engine/api/disks
>
> I think there are parameter missing. But I can't find a working example.
> Please help.
>
> Best Regards,
> Michael
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/6325IQ7KHWOPVKBO3ZTJ3VFJIFWHNIAV/