Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Messed up pool-database, ha-cfg complaing 8 years 11 months ago #423

Hello,

its seems like i somehow managed to mess up the ha-lizard variables in the pool-database. Whenever i issue the "ha-cfg get-vm-ha" command, for example, i get an warning/error:

$ ha-cfg get-vm-ha
Retreiving data.. please wait
Error: Key XenCenter.CustomFields.ha-lizard-enabled not found in map
Error: Key XenCenter.CustomFields.ha-lizard-enabled not found in map
Error: Key XenCenter.CustomFields.ha-lizard-enabled not found in map

I tried to fix it with the pool-param-set/get/remove commands but to no avail. Anyone knows how to fix this? Ill attached the pool-database below:

uuid ( RO)                            : 92f8f98f-45f9-fad0-712d-54a5c73b20af
                      name-label ( RW): Xen-Pool
                name-description ( RW): Xen
                          master ( RO): 726589a0-4423-405
                      default-SR ( RW): 756adc19-05ce-
                   crash-dump-SR ( RW): 756adc19-05ce-
                suspend-image-SR ( RW): 756adc19-05ce-
              supported-sr-types ( RO): iscsi; lvm; ext; file; dummy; nfs; hba; lvmoiscsi; iso; lvmohba; udev
                    other-config (MRW): XenCenter.CustomFields.ha-lizard-enabled: false; ha-lizard-enabled: true; HA_MONITOR_DELAY: 15; autopromote_uuid: 98fbe037-98d3-4aa2-8881-b4b419f18a7f; HA_FENCE_HEURISTICS_IPS: 192.168.1.10; XenCenter.CustomFields.: false; HA_FENCE_HA_ONFAIL: 1; HA_SLAVE_VM_STAT: 1; HA_SMTP_PASS: yes; HA_SMTP_USER: rubi; HA_SMTP_SERVER: 83.25.2.10; HA_MAIL_ON: 0; HA_GLOBAL_VM_HA: 0; HA_XAPI_DELAY: 10; HA_XAPI_COUNT: 2; HA_MONITOR_MAX_STARTS: 20; HA_FENCE_USE_IP_HEURISTICS: 1; HA_FENCE_QUORUM_REQUIRED: 1; HA_FENCE_MIN_HOSTS: 2; HA_FENCE_ENABLED: 1; HA_FENCE_HOST_FORGET: 0; HA_FENCE_IPADDRESS: ; HA_FENCE_REBOOT_LONE_HOST: 0; HA_FENCE_ACTION: stop; HA_FENCE_PASSWD: ; HA_FENCE_METHOD: POOL; HA_FENCE_FILE_LOC: /etc/ha-lizard/fence; HA_SMTP_PORT: "25"; HA_MAIL_TO: "root@localhost"; HA_MAIL_FROM: "root@localhost"; HA_MAIL_SUBJECT: "SYSTEM_ALERT-FROM_HOST:$HOSTNAME"; HA_PROMOTE_SLAVE: 1; HA_SLAVE_HA: 1; HA_DISABLED_VAPPS: (); HA_ENABLE_LOGGING: 1; HA_OP_MODE: 2; HA_XE_TIMEOUT: 10; HA_XC_FIELD_NAME: 'ha-lizard-enabled'; HA_MONITOR_SCANRATE: 10; HA_MONITOR_KILLALL: 1; cpuid_feature_mask: ffffff7f-ffffffff-ffffffff-ffffffff; memory-ratio-hvm: 0.25; memory-ratio-pv: 0.25
                      ha-enabled ( RO): false
                ha-configuration ( RO): 
                   ha-statefiles ( RO): 
    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
                      gui-config (MRW): XenCenter.CustomFields: <CustomFieldDefinitions><CustomFieldDefinition name="ha-lizard-enabled" type="String" defaultValue="" /></CustomFieldDefinitions>
                    restrictions ( RO): restrict_vswitch_controller: false; restrict_lab: false; restrict_stage: false; restrict_storagelink: false; restrict_storagelink_site_recovery: false; restrict_web_selfservice: true; restrict_web_selfservice_manager: true; restrict_hotfix_apply: false; restrict_export_resource_data: true; restrict_read_caching: true; 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: true; 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_intellicache: false; restrict_gpu: false; restrict_dr: false; restrict_vif_locking: false; restrict_storage_xen_motion: false; restrict_vgpu: true
                            tags (SRW): 
                   license-state ( RO): edition: free; expiry: never

Please Log in or Create an account to join the conversation.

Last edit: by Robin.

Messed up pool-database, ha-cfg complaing 8 years 11 months ago #424

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
It looks like a couple of extra fields found thier way into your "other-config" parameter which is where the ha-lizard settings are stored. Apart from that, the rest of the config database appears to be intact. Can you try removing the fields highlighted in the attached image test again.
Attachments:
The following user(s) said Thank You: Robin

Please Log in or Create an account to join the conversation.

Messed up pool-database, ha-cfg complaing 8 years 11 months ago #427

Hello,

this did happen when i did write a pool-shutdown script which first disables HA globaly and the shuts down all vm, then server and then the master.

After making the script generic i can post it here in case someone is interested.

Thanks!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1