-
Notifications
You must be signed in to change notification settings - Fork 92
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
[crmsh-4.6] Dev: pre-migration: implement pre-migration checks for SLES 16 (jsc#PED-11808) #1629
Changes from all commits
4488385
b2265ef
49779b4
689b246
1607318
26869fd
25e0dff
f061b4f
a38ec9a
440ea0e
bbfcfa4
36f7d23
52dac4d
14f5b2e
4dae2e3
22fd915
abbbc3e
843d637
d8b62b1
2368846
b6b8987
26ccee4
252befd
7670957
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include crmsh *.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""utilities for parsing CIB xml""" | ||
import collections | ||
import typing | ||
|
||
import lxml.etree | ||
|
||
|
||
ResourceAgent = collections.namedtuple('ResourceAgentDO', ['m_class', 'm_provider', 'm_type']) | ||
# class: str | ||
# provider: Optional[str] | ||
# type: str | ||
|
||
|
||
def get_configured_resource_agents(cib: lxml.etree.Element) -> typing.Set[ResourceAgent]: | ||
return set( | ||
ResourceAgent(e.get('class'), e.get('provider'), e.get('type')) | ||
for e in cib.xpath('/cib/configuration/resources//primitive') | ||
) | ||
|
||
|
||
def has_primitive_filesystem_with_fstype(cib: lxml.etree.Element, fstype: str) -> bool: | ||
return bool(cib.xpath( | ||
'/cib/configuration/resources//primitive[@class="ocf" and @provider="heartbeat" and @type="Filesystem"]' | ||
f'/instance_attributes/nvpair[@name="fstype" and @value="{fstype}"]' | ||
)) |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about moving this file under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer not to do that. I think this will need to add a python module |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
ocf:heartbeat:CTDB | ||
ocf:heartbeat:ClusterMon | ||
ocf:heartbeat:Delay | ||
ocf:heartbeat:Dummy | ||
ocf:heartbeat:Filesystem | ||
ocf:heartbeat:IPaddr2 | ||
ocf:heartbeat:IPsrcaddr | ||
ocf:heartbeat:IPv6addr | ||
ocf:heartbeat:LVM-activate | ||
ocf:heartbeat:MailTo | ||
ocf:heartbeat:NodeUtilization | ||
ocf:heartbeat:Raid1 | ||
ocf:heartbeat:Route | ||
ocf:heartbeat:SAPDatabase | ||
ocf:heartbeat:SAPInstance | ||
ocf:heartbeat:SendArp | ||
ocf:heartbeat:Squid | ||
ocf:heartbeat:Stateful | ||
ocf:heartbeat:VirtualDomain | ||
ocf:heartbeat:WAS | ||
ocf:heartbeat:WAS6 | ||
ocf:heartbeat:Xinetd | ||
ocf:heartbeat:aliyun-vpc-move-ip | ||
ocf:heartbeat:apache | ||
ocf:heartbeat:aws-vpc-move-ip | ||
ocf:heartbeat:aws-vpc-route53 | ||
ocf:heartbeat:awseip | ||
ocf:heartbeat:awsvip | ||
ocf:heartbeat:azure-events | ||
ocf:heartbeat:azure-events-az | ||
ocf:heartbeat:azure-lb | ||
ocf:heartbeat:conntrackd | ||
ocf:heartbeat:corosync-qnetd | ||
ocf:heartbeat:crypt | ||
ocf:heartbeat:db2 | ||
ocf:heartbeat:dhcpd | ||
ocf:heartbeat:docker | ||
ocf:heartbeat:docker-compose | ||
ocf:heartbeat:dummypy | ||
ocf:heartbeat:ethmonitor | ||
ocf:heartbeat:exportfs | ||
ocf:heartbeat:galera | ||
ocf:heartbeat:garbd | ||
ocf:heartbeat:gcp-ilb | ||
ocf:heartbeat:gcp-pd-move | ||
ocf:heartbeat:gcp-vpc-move-ip | ||
ocf:heartbeat:gcp-vpc-move-vip | ||
ocf:heartbeat:iSCSILogicalUnit | ||
ocf:heartbeat:iSCSITarget | ||
ocf:heartbeat:iface-bridge | ||
ocf:heartbeat:iface-macvlan | ||
ocf:heartbeat:iface-vlan | ||
ocf:heartbeat:ldirectord | ||
ocf:heartbeat:lvmlockd | ||
ocf:heartbeat:mariadb | ||
ocf:heartbeat:mdraid | ||
ocf:heartbeat:mpathpersist | ||
ocf:heartbeat:mysql | ||
ocf:heartbeat:mysql-proxy | ||
ocf:heartbeat:named | ||
ocf:heartbeat:nfsnotify | ||
ocf:heartbeat:nfsserver | ||
ocf:heartbeat:nginx | ||
ocf:heartbeat:nvmet-namespace | ||
ocf:heartbeat:nvmet-port | ||
ocf:heartbeat:nvmet-subsystem | ||
ocf:heartbeat:oraasm | ||
ocf:heartbeat:oracle | ||
ocf:heartbeat:oralsnr | ||
ocf:heartbeat:osceip | ||
ocf:heartbeat:ovsmonitor | ||
ocf:heartbeat:pgagent | ||
ocf:heartbeat:pgsql | ||
ocf:heartbeat:podman | ||
ocf:heartbeat:portblock | ||
ocf:heartbeat:postfix | ||
ocf:heartbeat:powervs-subnet | ||
ocf:heartbeat:rabbitmq-cluster | ||
ocf:heartbeat:rabbitmq-server-ha | ||
ocf:heartbeat:redis | ||
ocf:heartbeat:rsyncd | ||
ocf:heartbeat:sfex | ||
ocf:heartbeat:sg_persist | ||
ocf:heartbeat:slapd | ||
ocf:heartbeat:storage-mon | ||
ocf:heartbeat:symlink | ||
ocf:heartbeat:tomcat | ||
ocf:suse:aws-vpc-move-ip | ||
ocf:suse:SAPHanaController | ||
ocf:suse:SAPHanaFilesystem | ||
ocf:suse:SAPHanaTopology | ||
stonith:fence_aliyun | ||
stonith:fence_alom | ||
stonith:fence_apc | ||
stonith:fence_apc-snmp | ||
stonith:fence_aws | ||
stonith:fence_azure-arm | ||
stonith:fence_bladecenter | ||
stonith:fence_brocade | ||
stonith:fence_cisco-mds | ||
stonith:fence_cisco-ucs | ||
stonith:fence_compute | ||
stonith:fence_docker | ||
stonith:fence_drac5 | ||
stonith:fence_eaton-snmp | ||
stonith:fence_eaton-ssh | ||
stonith:fence_emerson | ||
stonith:fence_eps | ||
stonith:fence_gce | ||
stonith:fence_hds-cb | ||
stonith:fence_hpblade | ||
stonith:fence_ibm-powervs | ||
stonith:fence_ibm-vpc | ||
stonith:fence_ibmblade | ||
stonith:fence_ibmz | ||
stonith:fence_ifmib | ||
stonith:fence_ilo-moonshot | ||
stonith:fence_ilo-mp | ||
stonith:fence_ilo-ssh | ||
stonith:fence_ilo2 | ||
stonith:fence_intelmodular | ||
stonith:fence_ipdu | ||
stonith:fence_ipmilan | ||
stonith:fence_ironic | ||
stonith:fence_kdump | ||
stonith:fence_ldom | ||
stonith:fence_lpar | ||
stonith:fence_mpath | ||
stonith:fence_netio | ||
stonith:fence_openstack | ||
stonith:fence_pve | ||
stonith:fence_raritan | ||
stonith:fence_rcd-serial | ||
stonith:fence_redfish | ||
stonith:fence_rhevm | ||
stonith:fence_rsa | ||
stonith:fence_rsb | ||
stonith:fence_sanbox2 | ||
stonith:fence_sbd | ||
stonith:fence_scsi | ||
stonith:fence_vbox | ||
stonith:fence_virsh | ||
stonith:fence_vmware | ||
stonith:fence_vmware-rest | ||
stonith:fence_wti | ||
stonith:fence_xenapi | ||
stonith:fence_zvm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How has the above data been generated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Extracted the file list from resource-agents/fence-agents.
No, because we need to know what is supported by SLES 16 instead of SLES 15 SP6. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to move these codes into xmlutil.py instead of creating a new py file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. xmlutil.py is too long, and its name does not reflect its content. Instead of general xml processing utilities, it is a mixed mess with shell utils, CIB specific routines, and even CLI handlers.