Closed twizod closed 6 years ago
are you running Scaleio 1.3 or 2.x ?
For 2.x i recommend using the new modules based upon the rest api:
Install-Module SIORestToolkit -Scope CurrentUser
Scaleio 2.0.1.3
Sure I’ll give it a try and let you know. Thanks!
Jay
Sent from my iPhone
On Nov 18, 2017, at 6:37 AM, Karsten Bott notifications@github.com wrote:
are you running Scaleio 1.3 or 2.x ?
For 2.x i recommend using the new modules based upon the rest api: Install-Module SIORestToolkit -Scope CurrentUser
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
What am I doing wrong? PowerCLI C:> Install-Module SIORestToolkit -Scope CurrentUserPowerCLI C:> cd C:\labbuildr4\PowerCLI C:\labbuildr4> ls
Directory: C:\labbuildr4
Mode LastWriteTime Length Name---- ------------- ------ ----d----- 11/15/2017 11:08 AM Installd----- 11/15/2017 11:23 AM SIOToolKit
PowerCLI C:\labbuildr4> cd .\SIOToolKit\PowerCLI C:\labbuildr4\SIOToolKit> ipmo .\SIOToolKit.ps1Enter IP for Primary MDM: 10.16.10.11Enter IP for Secondary MDM: 10.16.10.12Enter MDM Username: adminEnter MDM Password: ****VERBOSE: Connecting to MDM 10.16.10.11,10.16.10.12WARNING: Could not connect to MDM with given Parameters. Wrong Password ?
What am I not seeing? I have tried connecting via SIORestToolKit using Connect-SIOmdm -GatewayIP -trustcert to no avail, tried connecting above, tried updateing openSSL and NOTHING works. Please help. -Jay On Saturday, November 18, 2017, 6:37:29 AM EST, Karsten Bott notifications@github.com wrote:
are you running Scaleio 1.3 or 2.x ?
For 2.x i recommend using the new modules based upon the rest api: Install-Module SIORestToolkit -Scope CurrentUser
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
you should not load the SIOToolkit Modules ! As of above, you are entering ipmo .\SIOToolKit.ps1
Install-modules installs PS Modudel in the PS Module Directory ind loads them automatically if required.
Open a new powershell window and cust typr in get-command -module SIORestTookit to see the commands / Module Loaded Type in the Connect-SIOmdm here again. DO NO RUN THE ipmo .\SIOToolKit.ps1 from the old modules as this is no longer needed / required
I am still facing the same issue. PowerCLI C:> get-command -Module SIORestToolkit CommandType Name Version Source----------- ---- ------- ------Function Add-SIOmappedSDC 2.0.1.2 SIORestToolkitFunction Add-SIOTrustedHostCertificate 2.0.1.2 SIORestToolkitFunction Connect-SIOGateway 2.0.1.2 SIORestToolkitFunction Connect-SIOmdm 2.0.1.2 SIORestToolkitFunction Get-SIOAlert 2.0.1.2 SIORestToolkitFunction Get-SIOAPIversion 2.0.1.2 SIORestToolkitFunction Get-SIOdeviceList 2.0.1.2 SIORestToolkitFunction Get-SIODevicesTestResults 2.0.1.2 SIORestToolkitFunction Get-SIOFaultSet 2.0.1.2 SIORestToolkitFunction Get-SIOfaultSetList 2.0.1.2 SIORestToolkitFunction Get-SIOGatewayConfiguration 2.0.1.2 SIORestToolkitFunction Get-SIOHostCertificate 2.0.1.2 SIORestToolkitFunction Get-SIOmdmCluster 2.0.1.2 SIORestToolkitFunction Get-SIOProtectionDomain 2.0.1.2 SIORestToolkitFunction Get-SIOprotectionDomainList 2.0.1.2 SIORestToolkitFunction Get-SIOProtectionDOmainNetwork 2.0.1.2 SIORestToolkitFunction Get-SIOrfcacheDeviceList 2.0.1.2 SIORestToolkitFunction Get-SIOSdc 2.0.1.2 SIORestToolkitFunction Get-SIOsdcList 2.0.1.2 SIORestToolkitFunction Get-SIOSDCOscillatingNetworkCounters 2.0.1.2 SIORestToolkitFunction Get-SIOSds 2.0.1.2 SIORestToolkitFunction Get-SIOsdsList 2.0.1.2 SIORestToolkitFunction Get-SIOStatistics 2.0.1.2 SIORestToolkitFunction Get-SIOStoragePool 2.0.1.2 SIORestToolkitFunction Get-SIOstoragePoolList 2.0.1.2 SIORestToolkitFunction Get-SIOSystem 2.0.1.2 SIORestToolkitFunction Get-SIOUser 2.0.1.2 SIORestToolkitFunction Get-SIOVolume 2.0.1.2 SIORestToolkitFunction Get-SIOvolumeList 2.0.1.2 SIORestToolkitFunction Get-SIOVTree 2.0.1.2 SIORestToolkitFunction Get-SIOvTreeList 2.0.1.2 SIORestToolkitFunction Get-SIOVTreeStatistics 2.0.1.2 SIORestToolkitFunction Get-SIOVTreeVolume 2.0.1.2 SIORestToolkitFunction Get-SIOWebException 2.0.1.2 SIORestToolkitFunction Get-SIOyesno 2.0.1.2 SIORestToolkitFunction Move-SIOMDMownerShip 2.0.1.2 SIORestToolkitFunction New-SIOMdmCluster 2.0.1.2 SIORestToolkitFunction New-SIOSnapshot 2.0.1.2 SIORestToolkitFunction New-SIOUser 2.0.1.2 SIORestToolkitFunction New-SIOVolume 2.0.1.2 SIORestToolkitFunction Remove-SIOmappedSDC 2.0.1.2 SIORestToolkitFunction Remove-SIOVolume 2.0.1.2 SIORestToolkitFunction Reset-SIODeviceOscillatingCounter 2.0.1.2 SIORestToolkitFunction Restore-SIOSnapshot 2.0.1.2 SIORestToolkitFunction Resume-SIOProtectionDomain 2.0.1.2 SIORestToolkitFunction Set-SIOGatewaySecureCommunbication 2.0.1.2 SIORestToolkitFunction Set-SIOMdmPerformanceParameters 2.0.1.2 SIORestToolkitFunction Set-SIOSDCPerformanceParameters 2.0.1.2 SIORestToolkitFunction Set-SIOSDSPerformanceParameters 2.0.1.2 SIORestToolkitFunction Start-SIOSDSDevicesTest 2.0.1.2 SIORestToolkitFunction Start-SIOSDSNetworkTest 2.0.1.2 SIORestToolkitFunction Suspend-SIOProtectionDomain 2.0.1.2 SIORestToolkitFunction Unblock-SIOCerts 2.0.1.2 SIORestToolkitFunction Update-SIOGatewaymdmIp 2.0.1.2 SIORestToolkitFunction Update-SIOGatewayPassword 2.0.1.2 SIORestToolkit
PowerCLI C:> Connect-SIOmdm -GatewayIP 10.16.10.11 -trustCertPlease Enter ScaleIO MDM username: adminEnter ScaleIO Password for user admin: ****WARNING: general errorUnable to connect to the remote serverPowerCLI C:>
On Friday, November 24, 2017, 7:22:45 AM EST, Karsten Bott <notifications@github.com> wrote:
you should not load the SIOToolkit Modules ! As of above, you are entering ipmo .\SIOToolKit.ps1
Install-modules installs PS Modudel in the PS Module Directory ind loads them automatically if required.
Open a new powershell window and cust typr in get-command -module SIORestTookit to see the commands / Module Loaded Type in the Connect-SIOmdm here again. DO NO RUN THE ipmo .\SIOToolKit.ps1 from the old modules as this is no longer needed / required
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
General error occurs if the Gateway Configuration is not complete ...can you connect to the Gateway using your Browser ? if so, have the Certificates in the Gateway been approved ?
General error occurs if the Gateway Configuration is not complete ...can you connect to the Gateway using your Browser ? if so, have the Certificates in the Gateway been approved ?
I have logged into the web url of the gateway IP, however, I only see how to do, "Home/Packages/Install/Monitor/Maintain/Logout" tabs but nothing to accept in terms of certifixates. Logging in to the ScaleIO Windows GUI yields accepted certificates from the MDM nodes, only. How do I approve certificates after I log into the Gateway URL? -Jay On Saturday, November 25, 2017, 10:49:26 AM EST, Karsten Bott notifications@github.com wrote:
General error occurs if the Gateway Configuration is not complete ...can you connect to the Gateway using your Browser ? if so, have the Certificates in the Gateway been approved ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I did find that if I went to "Maintain" and filled out: MDM IP/Username/Password/LIA Password I had to go to a section to accept certificate. I did that but the SIORestToolkit still had the same response: PowerCLI C:> Connect-SIOmdm -GatewayIP 10.16.10.12Please Enter ScaleIO MDM username: adminEnter ScaleIO Password for user admin: ****WARNING: general errorUnable to connect to the remote server
On Saturday, November 25, 2017, 10:49:37 AM EST, Karsten Bott <notifications@github.com> wrote:
General error occurs if the Gateway Configuration is not complete ...can you connect to the Gateway using your Browser ? if so, have the Certificates in the Gateway been approved ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
are you sure you are using the Gateway IP to connect to ? might my that there is no gateway running on
10.16.10.12...
so let us please first checj the Gateway with Connect-SIOGateway -GatewayIP 10.16.10.12 -trustCert -Verbose
also, test this line in your Webbrowser:
https://10.16.10.12/api/login
I have it designed as: 10.16.10.10 is Gateway10.16.10.11 - mdm110.16.0.12 - mdm210.16.10.13 - tb110.16.10.14 - tb2
Logging into https://10.16.10.10/api/login yields this website showing only the following output: YWRtaW46MTUxMTcyMTM2NzI2MzpjZGQxZGI5NTc0ZjY0YmQ2ZWU4YzkzMzM3NjU2ZTAwZg
Using your command I get:
On Sunday, November 26, 2017, 2:13:37 AM EST, Karsten Bott <notifications@github.com> wrote:
PowerCLI C:> Connect-SIOGateway -GatewayIP 10.16.10.10 -trustCert -Verbose Please Enter ScaleIO MDM username: admin Enter ScaleIO Password for user admin: **** VERBOSE: Generating Login Token VERBOSE: https://10.16.10.10:443 VERBOSE: GET https://10.16.10.10/api/gatewayLogin with 0-byte payload VERBOSE: received -1-byte response of content type application/json;charset=UTF-8 Successfully connected to ScaleIO https://10.16.10.10:443 VERBOSE: GET https://10.16.10.10/api/Configuration with 0-byte payload VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
systemId : 15a896e05767f816 mdmPort : 6611 snmpResendFrequency : 0 snmpSamplingFrequency : 30 featuresEnableSnmp : false cipherSuites : featuresEnableIM : true snmpPort : 162 bypassCertificateCheck : false mdmUsername : remoteSyslog : {@{hostName=10.31.45.198; port=514; facility=16; battachEventCode=False; bconfigured=True}} mdmAddresses : {10.16.10.11, 10.16.10.13, 10.16.10.12} snmpTrapsReceiverIps : allowNonSecureCommunication : false
PowerCLI C:>
are you sure you are using the Gateway IP to connect to ? might my that there is no gateway running on 10.16.10.12... so let us please first checj the Gateway with Connect-SIOGateway -GatewayIP 10.16.10.12 -trustCert -Verbose
also, test this line in your Webbrowser: https://10.16.10.12/api/login
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
then you are good to go:-) as the command connect-SIOMdm, it uses the Gateway IP (_GatewaIP ) to connect to the MDM´s. This is where the Rest API is Accessible ! SO just do a Connect-SIOMDM -GatewayIP 10.16.10.10 -trustCert -Verbose
I really do appreciate your time and patience and narrowing down my confusion on what device I am trying to log into and what the best approach is, SIORestToolkit. I was working with ScaleIO SE for my company not getting anywhere in my effort to automate the deployment of ScaleIO in VMware and creating RunBooks for the Operations team. I really appreciate your amazing support and also amazingly fast replies. Thank you so much. I have automated the ScaleIO Plugin, ScaleIOPluginSetup-2.0-13000xxxxx.ps1, to upload the OVA using DVSwitches instead of the required Standard Switch, which is a royal pain, so I am hoping ScaleIO technical support incorporates this into their powershell plugin. Thanks again,-Jay
On Sunday, November 26, 2017, 5:43:12 AM EST, Karsten Bott <notifications@github.com> wrote:
then you are good to go:-) as the command connect-SIOMdm, it uses the Gateway IP (_GatewaIP ) to connect to the MDM´s. This is where the Rest API is Accessible ! SO just do a Connect-SIOMDM -GatewayIP 10.16.10.10 -trustCert -Verbose
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
no problem, happy to help where possible. for the automation piece, how far have you been done with it ? I tried some of that in my labbuildr automation on Nested ESX, but only in my test lab. i will close the thread here but you can also ping me on @azurestack_guy or Karsten.Bott@emc.com. the SIORestToolkit will be updated from time to time ( just doing some sanity tests on 2.0.1.4 ), bugs for it can be filed under https://github.com/bottkars/SIORestToolkit
I almost forgot the entire point of this exercise.....I have had to use Invoke-VMScript to run the command to put an SDS node in maintenance mode. I see that the SIORestToolKit does not contain that command. Is this true?
Code:Invoke-VMScript -VM $mdmVM -ScriptText "scli --enter_maintenance_mode --sds_name $SDSName" -GuestUser root -GuestPassword Invoke-VMScript -VM $mdmVM -ScriptText "scli --exit_maintenance_mode --sds_name $SDSName" -GuestUser root -GuestPassword
-Jay On Sunday, November 26, 2017, 6:05:35 AM EST, Karsten Bott notifications@github.com wrote:
Closed #4.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
please open an ER at https://github.com/bottkars/SIORestToolkit next time work is already done, albeit wei need to track in original repo :-)
https://github.com/bottkars/SIORestToolkit/issues/1 feel free to comment, first draft :-) Module updated on PSGallery
PowerCLI C:\labbuildr4\SIOToolKit> ipmo .\SIOToolKit.ps1 Enter IP for Primary MDM: 10.18.10.11 Enter IP for Secondary MDM: 10.18.10.12 Enter MDM Username: admin Enter MDM Password: **** VERBOSE: Connecting to MDM 10.18.10.11,10.18.10.12 WARNING: Could not connect to MDM with given Parameters. Wrong Password ? PowerCLI C:\labbuildr4\SIOToolKit>
At suggestion of Scaleio Support I downloaded 1.0.2 64bit OpenSSL and installed but still not working. Powershell 5.1.0
PowerCLI C:\labbuildr4\SIOToolKit> ls
Mode LastWriteTime Length Name
------ 2/12/2016 11:38 PM 567 .gitattributes ------ 2/12/2016 11:38 PM 7 .gitignore -a---- 3/22/2017 7:36 PM 2427392 cli.exe ------ 2/12/2016 11:38 PM 11324 LICENSE ------ 2/12/2016 11:38 PM 1098 README.md ------ 2/12/2016 11:38 PM 3578 SIOToolKit.ps1 ------ 2/12/2016 11:38 PM 2561 SIOToolKit.psd1 ------ 2/12/2016 11:38 PM 133168 SIOToolKit.psm1
PowerCLI C:\labbuildr4\SIOToolKit>