{"id":2021,"date":"2015-04-14T10:00:52","date_gmt":"2015-04-14T08:00:52","guid":{"rendered":"http:\/\/vm.piszki.pl\/?p=2021"},"modified":"2015-04-14T12:06:50","modified_gmt":"2015-04-14T10:06:50","slug":"vcsa-5-5-ponowne-zarejestrowanie-vcenter-w-sso-w-trybie-wymuszenia","status":"publish","type":"post","link":"https:\/\/vm.piszki.pl\/?p=2021","title":{"rendered":"vCSA 5.5 &ndash; ponowne zarejestrowanie vCenter w SSO w trybie wymuszenia."},"content":{"rendered":"<p align=\"justify\">Bardzo lubi\u0119 vCSA, jeden ruch r\u0119k\u0105 i ca\u0142e \u015brodowisko postawione. Niestety ze wzgl\u0119du na wbudowan\u0105 baz\u0119 danych ci\u0119\u017cko jest przeprowadzi\u0107 procedur\u0119 reinstalacji w przypadku wyst\u0105pienia problem\u00f3w. Ostatnio po restarcie vCSA ze zdziwieniem stwierdzi\u0142em, \u017ce vSphere Web Client pokazuje \u201cEmpty inventory\u201d.<\/p>\n<p><a href=\"https:\/\/vm.piszki.pl\/wp-content\/uploads\/2015\/02\/emptyinv.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"emptyinv\" src=\"https:\/\/vm.piszki.pl\/wp-content\/uploads\/2015\/02\/emptyinv_thumb.png\" alt=\"emptyinv\" width=\"314\" height=\"102\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p align=\"justify\">Po przeprowadzeniu odpowiedniej analizy, w logu \/var\/log\/vmware\/vsphere-client\/logs\/vsphere_client_virgo.log znalaz\u0142em co\u015b takiego:<\/p>\n<p><span style=\"font-size: xx-small;\">com.vmware.vim.binding.vmodl.MethodFault: The connection to vCenter Server &#8222;AB9B69A0-26C1-4EAD-A574-86C01C82BBFE&#8221; has been lost.<\/span><\/p>\n<p align=\"justify\">Oznacza to, \u017ce vCenter zosta\u0142o wyrejestrowane z SSO. W vSphere 5.5 tak to dzia\u0142a, vSphere Web Client poka\u017ce ka\u017cde vCenter zarejestrowane w SSO. Dzi\u0119ki temu mo\u017cemy jednym klientem zarz\u0105dza\u0107 kilkoma vCenter. Postanowi\u0142em r\u0119cznie ponownie zarejestrowa\u0107 vCenter w SSO. Na pocz\u0105tku sprawdzamy jakie serwisy s\u0105 zarejestrowane w SSO:<\/p>\n<p><span style=\"font-size: xx-small;\">pvc1:\/etc\/vmware-sso\/register-hooks.d # \/usr\/lib\/vmware-sso\/bin\/vi_regtool listServices <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><br \/>\n<span style=\"font-size: xx-small;\">Intializing registration provider&#8230;<br \/>\nGetting SSL certificates for <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><br \/>\n<span style=\"font-size: xx-small;\">Anonymous execution<br \/>\nFound 6 services.<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 1<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:f05bcb61-1586-4805-bb99-eca79b326faa<br \/>\nserviceName=The administrative interface of the SSO server<br \/>\ntype=urn:sso:admin<br \/>\nendpoints={[url=<\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/sso-adminserver\/sdk\/vsphere.local,protocol=vmomi]}<\/span><br \/>\n<span style=\"font-size: xx-small;\">version=1.5<br \/>\ndescription=The administrative interface of the SSO server<br \/>\nownerId=<br \/>\nproductId=product:sso<br \/>\nviSite=local<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 2<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:cfb6557b-25fc-415d-90b2-0f90bb9dd95f<br \/>\nserviceName=The security token service interface of the SSO server<br \/>\ntype=urn:sso:sts<br \/>\nendpoints={[url=<\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/sts\/STSService\/vsphere.local,protocol=wsTrust]}<\/span><br \/>\n<span style=\"font-size: xx-small;\">version=1.5<br \/>\ndescription=The security token service interface of the SSO server<br \/>\nownerId=<br \/>\nproductId=product:sso<br \/>\nviSite=local<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 3<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:33ac0b2d-9d69-4684-85ba-c37fff2f7097<br \/>\nserviceName=VMware Log Browser<br \/>\ntype=urn:logbrowser:logbrowser<br \/>\nendpoints={[url=<\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:12443\/vmwb\/logbrowser,protocol=unknown],[url=https:\/\/pvc1.piszki.lab:12443\/authentication\/authtoken,protocol=unknown]}<\/span><br \/>\n<span style=\"font-size: xx-small;\">version=1.0.2175565<br \/>\ndescription=Enables browsing vSphere log files within the VMware Web Client<br \/>\nownerId=logbrowser-pvc1.piszki.lab-da83b7fb-404c-4ad4-911e-f7b2ab8aaaf8<br \/>\nproductId=<br \/>\nviSite=local<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 4<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:19c572c9-3501-4278-b440-0606dcff7c2a<br \/>\nserviceName=The group check interface of the SSO server<br \/>\ntype=urn:sso:groupcheck<br \/>\nendpoints={[url=<\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/sso-adminserver\/sdk\/vsphere.local,protocol=vmomi]}<\/span><br \/>\n<span style=\"font-size: xx-small;\">version=1.5<br \/>\ndescription=The group check interface of the SSO server<br \/>\nownerId=<br \/>\nproductId=product:sso<br \/>\nviSite=local<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 5<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:27924ff7-0efb-48bf-b890-651fa58ee08e<br \/>\nserviceName=vsphere-client-pvc1.piszki.lab-6991e11e-8470-4f8d-8a90-b13db38c6d81<br \/>\ntype=urn:com.vmware.vsphere.client<br \/>\nendpoints={[url=<\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:9443\/vsphere-client,protocol=vmomi]}<\/span><br \/>\n<span style=\"font-size: xx-small;\">version=5.5<br \/>\ndescription=vSphere Web Client at pvc1.piszki.lab<br \/>\nownerId=vsphere-client-pvc1.piszki.lab-6991e11e-8470-4f8d-8a90-b13db38c6d81@vsphere.local<br \/>\nproductId=<br \/>\nviSite=local<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Service 6<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nserviceId=local:3f83bb40-0fd6-453e-b5dc-24fdec238abe<br \/>\nserviceName=vCHS Plugin<br \/>\ntype=vsphere-client-serenity<br \/>\nendpoints={[url=file:\/\/\/usr\/lib\/vmware-vsphere-client\/server\/work\/tmp\/vchs-pckg1520000318964402821.zip,protocol=http]}<br \/>\nversion=1.5.1.0<br \/>\ndescription=vCHS Plugin<br \/>\nownerId=VMware, Inc.<br \/>\nproductId=com.vmware.vcim<br \/>\nviSite=local<br \/>\nReturn code is: Success<\/span><\/p>\n<p align=\"justify\">Zgodnie z oczekiwaniami, nie ma \u015bladu po vCenter. Na wszelki wypadek pr\u00f3bujemy odrejestrowania vCenter z SSO:<\/p>\n<p><span style=\"font-size: xx-small;\">pvc1:\/etc\/vmware-sso\/register-hooks.d # .\/01-vcenter &#8211;mode uninstall &#8211;ls-server <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><span style=\"font-size: xx-small;\"> &#8211;user administrator@vsphere.local &#8211;password xxxx<br \/>\nIntializing registration provider&#8230;<br \/>\nGetting SSL certificates for <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><br \/>\n<span style=\"font-size: xx-small;\">null<br \/>\ncom.vmware.vim.binding.lookup.fault.ServiceFault:<br \/>\nerrorMessage = No such object<br \/>\ninherited from com.vmware.vim.binding.lookup.fault.ServiceFault<br \/>\nReturn code is: UnregisterFailed<\/span><\/p>\n<p align=\"justify\">Zgodnie z oczekiwaniem, nic z tego. Pr\u00f3bujemy ponownego zarejestrowania:<\/p>\n<p><span style=\"font-size: xx-small;\">pvc1:\/etc\/vmware-sso\/register-hooks.d # .\/01-vcenter &#8211;mode install &#8211;ls-server <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><span style=\"font-size: xx-small;\"> &#8211;user administrator@vsphere.local &#8211;password xx &#8211;option vc-admin-principal=root &#8211;option sso-deployment-type=embedded<br \/>\nIntializing registration provider&#8230;<br \/>\nGetting SSL certificates for <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><br \/>\n<span style=\"font-size: xx-small;\">Anonymous execution<br \/>\nSuccessfully saved SSO locations and certificates<br \/>\nReturn code is: Success<br \/>\nCreating SSO principal for vCenter Server<br \/>\nIntializing registration provider&#8230;<br \/>\nGetting SSL certificates for <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><br \/>\n<span style=\"font-size: xx-small;\">vpxd-pvc1.piszki.lab-ad101ef0-9465-483e-b001-4f52d6f83729<br \/>\ncom.vmware.vim.sso.admin.exception.DuplicateSolutionCertificateException: vpxd-pvc1.piszki.lab-ad101ef0-9465-483e-b001-4f52d6f83729<br \/>\nReturn code is: AlreadyRegistered<\/span><\/p>\n<p align=\"justify\">Niestety, komunikat wyra\u017anie pokazuje, \u017ce vCenter jest zarejestrowane.\u00a0 Kolejna pr\u00f3ba r\u0119cznego wyrejestrowania vCenter z SSO:<\/p>\n<p><span style=\"font-size: xx-small;\">pvc1:\/etc\/vmware-sso\/register-hooks.d # \/usr\/lib\/vmware-sso\/bin\/vi_regtool unregisterService -d <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><span style=\"font-size: xx-small;\">-u administrator@vsphere.local -p xxxx -si id.vc<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Intializing registration provider&#8230;<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">Getting SSL certificates for <\/span><span style=\"font-size: xx-small;\">https:\/\/pvc1.piszki.lab:7444\/lookupservice\/sdk<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">null<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">com.vmware.vim.binding.lookup.fault.ServiceFault:<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">errorMessage = No such object<\/span><\/p>\n<p><span style=\"font-size: xx-small;\">inherited from com.vmware.vim.binding.lookup.fault.ServiceFault<\/span><\/p>\n<p align=\"justify\">Dalej bez powodzenia. W tym momencie postanowi\u0142em si\u0119gn\u0105\u0107 po argument ostateczny, ponowne uruchomienie \u201cSetup wizard\u201d. Ju\u017c wcze\u015bniej wiedzia\u0142em, \u017ce ponowne uruchomienie tego kreatora nie powoduje wyczyszczenia bazy danych vCenter ani Inventory. Za to w trakcie ca\u0142ego procesu jest przeprowadzane pe\u0142ne ponowne rejestrowanie us\u0142ug. Oczywi\u015bcie snapshot jest obowi\u0105zkowy zanim cokolwiek zaczniemy. I tutaj bingo! vSphere Web Client pokaza\u0142 pe\u0142ne Inventory!<\/p>\n<p align=\"justify\"><a href=\"https:\/\/vm.piszki.pl\/wp-content\/uploads\/2015\/02\/empty.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"empty\" src=\"https:\/\/vm.piszki.pl\/wp-content\/uploads\/2015\/02\/empty_thumb.png\" alt=\"empty\" width=\"240\" height=\"115\" border=\"0\" \/><\/a><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Bardzo lubi\u0119 vCSA, jeden ruch r\u0119k\u0105 i ca\u0142e \u015brodowisko postawione. Niestety ze wzgl\u0119du na wbudowan\u0105 baz\u0119 danych ci\u0119\u017cko jest przeprowadzi\u0107 procedur\u0119 reinstalacji w przypadku wyst\u0105pienia problem\u00f3w. Ostatnio po restarcie vCSA ze zdziwieniem stwierdzi\u0142em, \u017ce vSphere Web Client pokazuje \u201cEmpty inventory\u201d. &hellip; <a href=\"https:\/\/vm.piszki.pl\/?p=2021\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[36],"tags":[57,80,59],"class_list":["post-2021","post","type-post","status-publish","format-standard","hentry","category-analiza","tag-vcenter","tag-vcsa","tag-web-client"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":1,"sum_votes":5},"_links":{"self":[{"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/posts\/2021"}],"collection":[{"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2021"}],"version-history":[{"count":4,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/posts\/2021\/revisions"}],"predecessor-version":[{"id":2130,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=\/wp\/v2\/posts\/2021\/revisions\/2130"}],"wp:attachment":[{"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vm.piszki.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}