Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show SR Used For HA State on XO Storage Page #6339

Closed
evoelise opened this issue Jul 31, 2022 · 8 comments · Fixed by #6384
Closed

Show SR Used For HA State on XO Storage Page #6339

evoelise opened this issue Jul 31, 2022 · 8 comments · Fixed by #6384

Comments

@evoelise
Copy link

It would be very useful to display the SR used for the HA state files on the Xo Storage page.

Currently you have a tag-pill for the (Default SR) could we also have similar for the HA SR?

@olivierlambert
Copy link
Member

Sure, that would make sense.

@julien-f
Copy link
Member

julien-f commented Aug 1, 2022

Any idea where this SR is defined in XAPI?

I don't see it on https://xapi-project.github.io/xen-api/classes/pool.html

@olivierlambert
Copy link
Member

It's likely in the ha_configuration record of the pool.

@julien-f
Copy link
Member

julien-f commented Aug 1, 2022

If someone has HA enabled, please show me the output of:

xe pool-param-list uuid=<pool UUID> | grep ha-configuration

@evoelise
Copy link
Author

evoelise commented Aug 1, 2022

The ha-configuration setting is blank on both my pools with HA enabled.

[17:48 XCPNG01 ~]# xe pool-param-list uuid=6e75bf9d-5882-0bc8-071e-9f116e4d6774 | grep ha-configuration
                ha-configuration ( RO):

Also looking at the configuration for the pool the SR UUID for HA state files is not shown:

[20:19 XCPNG01 ~]# xe pool-param-list uuid=6e75bf9d-5882-0bc8-071e-9f116e4d6774
uuid ( RO)                            : 6e75bf9d-5882-0bc8-071e-9f116e4d6774
                      name-label ( RW): XCPNGPOOL01
                name-description ( RW): Main Pool
                          master ( RO): 28af0626-7788-4104-9449-7d7a0ca9fcfc
                      default-SR ( RW): bc2687ec-0cdf-03ed-7f90-e58edad07fed
                   crash-dump-SR ( RW): <not in database>
                suspend-image-SR ( RW): <not in database>
              supported-sr-types ( RO): smb; lvm; iso; linstor; nfs; ext4; zfs; lvmofcoe; hba; udev; dummy; cephfs; xfs; lvmohba; lvmoiscsi; ext; file; glusterfs; iscsi
                    other-config (MRW): xo:clientInfo:g8q7se4gz5b: {"lastConnected":1659370098568,"networkInterfaces":{"enp1s0":[{"address":"192.168.1.184","netmask":"255.255.255.0","family":"IPv4","mac":"52:54:00:9e:b4:0a","internal":false,"cidr":"192.168.1.184/24"},{"address":"fe80::5054:ff:fe9e:b40a","netmask":"ffff:ffff:ffff:ffff::","family":"IPv6","mac":"52:54:00:9e:b4:0a","internal":false,"cidr":"fe80::5054:ff:fe9e:b40a/64","scopeid":2}]}}; xo:clientInfo:2ca900d2-13aa-1796-6186-768fc58953f0: {"lastConnected":1659360125642,"networkInterfaces":{"eth0":[{"address":"192.168.1.180","netmask":"255.255.255.0","family":"IPv4","mac":"6e:f0:d1:11:06:2b","internal":false,"cidr":"192.168.1.180/24"},{"address":"fe80::6cf0:d1ff:fe11:62b","netmask":"ffff:ffff:ffff:ffff::","family":"IPv6","mac":"6e:f0:d1:11:06:2b","internal":false,"cidr":"fe80::6cf0:d1ff:fe11:62b/64","scopeid":2}]}}; auto_poweron: true; memory-ratio-hvm: 0.25; memory-ratio-pv: 0.25
              allowed-operations (SRO): designate_new_master; ha_disable
              current-operations (SRO):
                      ha-enabled ( RO): true
                ha-configuration ( RO):
                   ha-statefiles ( RO): b3a798e8-24f4-489e-bbd3-749004d3f190
    ha-host-failures-to-tolerate ( RW): 0
              ha-plan-exists-for ( RO): 0
             ha-allow-overcommit ( RW): false
                ha-overcommitted ( RO): false
                           blobs ( RO):
                         wlb-url ( RO):
                    wlb-username ( RO):
                     wlb-enabled ( RW): false
                 wlb-verify-cert ( RW): false
           igmp-snooping-enabled ( RW): false
                      gui-config (MRW):
             health-check-config (MRW):
                    restrictions ( RO): restrict_vswitch_controller: false; restrict_lab: false; restrict_stage: false; restrict_storagelink: false; restrict_storagelink_site_recovery: false; restrict_web_selfservice: false; restrict_web_selfservice_manager: false; restrict_hotfix_apply: false; restrict_export_resource_data: false; restrict_read_caching: false; restrict_cifs: false; restrict_health_check: false; restrict_xcm: false; restrict_vm_memory_introspection: false; restrict_batch_hotfix_apply: false; restrict_management_on_vlan: false; restrict_ws_proxy: false; restrict_vlan: false; restrict_qos: false; restrict_pool_attached_storage: false; restrict_netapp: false; restrict_equalogic: false; restrict_pooling: false; enable_xha: true; restrict_marathon: false; restrict_email_alerting: false; restrict_historical_performance: false; restrict_wlb: false; restrict_rbac: false; restrict_dmc: false; restrict_checkpoint: false; restrict_cpu_masking: false; restrict_connection: false; platform_filter: false; regular_nag_dialog: false; restrict_vmpr: false; restrict_vmss: false; restrict_intellicache: false; restrict_gpu: false; restrict_dr: false; restrict_vif_locking: false; restrict_storage_xen_motion: false; restrict_vgpu: false; restrict_integrated_gpu_passthrough: false; restrict_vss: false; restrict_guest_agent_auto_update: false; restrict_pci_device_for_auto_update: false; restrict_xen_motion: false; restrict_guest_ip_setting: false; restrict_ad: false; restrict_nested_virt: false; restrict_live_patching: false; restrict_set_vcpus_number_live: false; restrict_pvs_proxy: false; restrict_igmp_snooping: false; restrict_rpu: false; restrict_pool_size: false; restrict_cbt: false; restrict_usb_passthrough: false; restrict_network_sriov: false; restrict_corosync: true; restrict_zstd_export: false; restrict_pool_secret_rotation: false
                            tags (SRW):
                   license-state ( RO): edition: xcp-ng; expiry: never
                ha-cluster-stack ( RO): xhad
              guest-agent-config (MRW):
                        cpu_info (MRO): features_hvm_host: 178bfbff-f6d83203-2e500800-040001f7-0000000f-219c01a9-00400004-00000000-00001005-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000; features_hvm: 178bfbff-f6f83203-2fd3fbff-040085f7-0000000f-219c01a9-00400004-00000000-00001005-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000; features_pv_host: 1789c3f5-f6d83203-2a500800-040001e3-00000007-218c0129-00400000-00000000-00001005-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000; features_pv: 1789c3f5-f6f83203-2bd1cbf5-040001e3-00000007-218c0129-00400000-00000000-00001005-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000-00000000; socket_count: 3; cpu_count: 36; vendor: AuthenticAMD
         policy-no-vendor-device ( RW): false
          live-patching-disabled ( RW): false

None of those settings match the SR for my HA files which is 24a6f2d9-8141-36f3-b415-c3966961d5f6?

The SR with the UUID as mentioned above for ha-statefiles settings does not exist:

xe sr-list | grep b3a798e8-24f4-489e-bbd3-749004d3f190`
No match

Something doesn't look quite right here?

This is the actual SR with my HA files:

uuid ( RO)                : 24a6f2d9-8141-36f3-b415-c3966961d5f6
          name-label ( RW): XCPNGNAS_POOL1_HA_UNRAID01
    name-description ( RW): Storage for POOL1 HA XCP-ng files on UNRAID
                host ( RO): <shared>
                type ( RO): nfs
        content-type ( RO): user

@olivierlambert
Copy link
Member

Can you show us the full record of the SR used for your HA/heartbeat? (output of xe sr-param-list)

@evoelise
Copy link
Author

evoelise commented Aug 1, 2022

OK I see the ha-statefiles setting relates to a VDI not an SR.

[17:55 XCPNG01 ~]# xe sr-param-list uuid=24a6f2d9-8141-36f3-b415-c3966961d5f6
uuid ( RO)                    : 24a6f2d9-8141-36f3-b415-c3966961d5f6
              name-label ( RW): XCPNGNAS_POOL1_HA_UNRAID01
        name-description ( RW): Storage for POOL1 HA XCP-ng files on UNRAID
                    host ( RO): <shared>
      allowed-operations (SRO): VDI.enable_cbt; VDI.list_changed_blocks; unplug; plug; PBD.create; VDI.disable_cbt; update; PBD.destroy; VDI.resize; VDI.clone; VDI.data_destroy; scan; VDI.snapshot; VDI.mirror; VDI.create; VDI.destroy; VDI.set_on_boot
      current-operations (SRO):
                    VDIs (SRO): aff0a642-54c0-4ccf-90a7-a6a54f834907; b3a798e8-24f4-489e-bbd3-749004d3f190
                    PBDs (SRO): 6c072359-74b6-0907-d4f2-72479ea366a4; a5530398-382d-5fa0-9680-0b020ef3a2df; 10c2a892-6b0d-f3da-8a1d-62df1e7f14cb
      virtual-allocation ( RO): 268701696
    physical-utilisation ( RO): 5992410513408
           physical-size ( RO): 23994833043456
                    type ( RO): nfs
            content-type ( RO): user
                  shared ( RW): true
           introduced-by ( RO): <not in database>
             is-tools-sr ( RO): false
            other-config (MRW):
               sm-config (MRO):
                   blobs ( RO):
     local-cache-enabled ( RO): false
                    tags (SRW):
               clustered ( RO): false

@olivierlambert
Copy link
Member

olivierlambert commented Aug 2, 2022

So in theory, with the statefile UUID, we can find which VDI and then in which SR it's hosted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants