2025-05-26 02:25:58,314 - INFO - Domain Default found not creating
2025-05-26 02:25:58,501 - INFO - Project ctest-TestBasicPolicy-13738830 not found, creating it
2025-05-26 02:25:59,024 - INFO - Created Project:ctest-TestBasicPolicy-13738830, ID : 6718cbb3-9c8a-4cf5-b382-048ae3139016
2025-05-26 02:26:00,668 - INFO - ================================================================================
2025-05-26 02:26:00,668 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-26 02:26:00,668 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-05-26 02:26:00,930 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-26 02:26:00,930 - INFO - Initial checks done. Running the testcase now
2025-05-26 02:26:00,930 - INFO -
2025-05-26 02:26:01,592 - DEBUG - Response for create_network : {'network': {'id': 'ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8', 'name': 'ctest-vn-30683932', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'project_id': '6718cbb39c8a4cf5b382048ae3139016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-vn-30683932'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:26:01,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '78fc80e2-d684-4e0d-bce9-153fc6affd0a', 'name': '', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'network_id': 'ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8', 'ip_version': 4, 'cidr': '46.29.156.64/26', 'allocation_pools': [{'start': '46.29.156.66', 'end': '46.29.156.126'}], 'gateway_ip': '46.29.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.29.156.66', 'tags': [], 'project_id': '6718cbb39c8a4cf5b382048ae3139016'}}
2025-05-26 02:26:01,865 - INFO - Created VN ctest-vn-30683932
2025-05-26 02:26:01,926 - DEBUG - VN ctest-vn-30683932 UUID is ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:02,287 - DEBUG - Response for create_network : {'network': {'id': '90e94834-31ab-4899-8c35-e5c6d68925b2', 'name': 'ctest-vn-09805313', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'project_id': '6718cbb39c8a4cf5b382048ae3139016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-vn-09805313'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:26:02,477 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2abb0d0-4a0f-42d1-8990-2f7271220502', 'name': '', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'network_id': '90e94834-31ab-4899-8c35-e5c6d68925b2', 'ip_version': 4, 'cidr': '202.54.53.128/26', 'allocation_pools': [{'start': '202.54.53.130', 'end': '202.54.53.190'}], 'gateway_ip': '202.54.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.54.53.130', 'tags': [], 'project_id': '6718cbb39c8a4cf5b382048ae3139016'}}
2025-05-26 02:26:02,500 - INFO - Created VN ctest-vn-09805313
2025-05-26 02:26:02,562 - DEBUG - VN ctest-vn-09805313 UUID is 90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:02,699 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-05-26 02:26:03,060 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8', 'name': 'ctest-vn-30683932', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'project_id': '6718cbb39c8a4cf5b382048ae3139016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78fc80e2-d684-4e0d-bce9-153fc6affd0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-vn-30683932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-policy-allow-all-51309539']], 'subnet_ipam': [{'subnet_cidr': '46.29.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:26:03,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90e94834-31ab-4899-8c35-e5c6d68925b2', 'name': 'ctest-vn-09805313', 'tenant_id': '6718cbb39c8a4cf5b382048ae3139016', 'project_id': '6718cbb39c8a4cf5b382048ae3139016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2abb0d0-4a0f-42d1-8990-2f7271220502'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-vn-09805313'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-policy-allow-all-51309539']], 'subnet_ipam': [{'subnet_cidr': '202.54.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:26:03,486 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-26 02:26:03,808 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-26 02:26:03,845 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8606105-62e7-41e1-a8aa-b4fe3743fec8
2025-05-26 02:26:03,862 - DEBUG - Requesting: http://10.0.0.50:8082/project/6718cbb3-9c8a-4cf5-b382-048ae3139016
2025-05-26 02:26:03,940 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:03,956 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:03,975 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b0cd205-69dc-4e7c-8839-5dcf3654f414
2025-05-26 02:26:03,985 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b0cd205-69dc-4e7c-8839-5dcf3654f414
2025-05-26 02:26:03,996 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a80c26a-b536-47a8-baac-5f0bcdca4441
2025-05-26 02:26:04,005 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 02:26:04,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:04,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b0cd205-69dc-4e7c-8839-5dcf3654f414
2025-05-26 02:26:04,035 - INFO - Verified VN network id 9 for VN ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:04,035 - INFO - Verifications in API Server for VN ctest-vn-30683932 passed
2025-05-26 02:26:04,035 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:04,055 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b0cd205-69dc-4e7c-8839-5dcf3654f414
2025-05-26 02:26:04,064 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b0cd205-69dc-4e7c-8839-5dcf3654f414
2025-05-26 02:26:04,075 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a80c26a-b536-47a8-baac-5f0bcdca4441
2025-05-26 02:26:04,094 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13738830', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16904995894365473776', 'uuid-lslong': '12164997876003182840'}, 'enable': 'true', 'created': '2025-05-26T02:26:01', 'last-modified': '2025-05-26T02:26:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066081'}
2025-05-26 02:26:04,102 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 02:26:04,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30683932 passed
2025-05-26 02:26:04,103 - DEBUG - ====Verifying policy data for ctest-vn-30683932 in API_Server ======
2025-05-26 02:26:04,103 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-26 02:26:04,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8606105-62e7-41e1-a8aa-b4fe3743fec8
2025-05-26 02:26:04,134 - DEBUG - Requesting: http://10.0.0.50:8082/project/6718cbb3-9c8a-4cf5-b382-048ae3139016
2025-05-26 02:26:04,235 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea9a9c33-0d17-4bf0-a8d2-c11d848d18f8
2025-05-26 02:26:04,249 - DEBUG - ==>Verifying data for policy with id: 60bdd986-ec29-480a-bd19-0e2ba9bda32d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-policy-allow-all-51309539']
2025-05-26 02:26:04,249 - INFO - VN ctest-vn-30683932 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 02:26:04,249 - DEBUG - Verifying the vn in opserver
2025-05-26 02:26:04,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932 virtual network link through opserver 10.0.0.50
2025-05-26 02:26:04,249 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-26 02:26:04,550 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-26 02:26:04,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932?flat'}
2025-05-26 02:26:04,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-30683932 is found in opserver
2025-05-26 02:26:04,629 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 02:26:04,635 - DEBUG - VRF ids for VN ctest-vn-30683932: {}
2025-05-26 02:26:04,635 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-26 02:26:04,642 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8606105-62e7-41e1-a8aa-b4fe3743fec8
2025-05-26 02:26:04,655 - DEBUG - Requesting: http://10.0.0.50:8082/project/6718cbb3-9c8a-4cf5-b382-048ae3139016
2025-05-26 02:26:04,731 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:04,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:04,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ff1b372a-9251-49a2-a871-67f47050510d
2025-05-26 02:26:04,773 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ff1b372a-9251-49a2-a871-67f47050510d
2025-05-26 02:26:04,782 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/665fd453-9004-4b72-9a93-40e46b4f0072
2025-05-26 02:26:04,792 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 02:26:04,792 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:04,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ff1b372a-9251-49a2-a871-67f47050510d
2025-05-26 02:26:04,829 - INFO - Verified VN network id 10 for VN 90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:04,829 - INFO - Verifications in API Server for VN ctest-vn-09805313 passed
2025-05-26 02:26:04,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:04,843 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ff1b372a-9251-49a2-a871-67f47050510d
2025-05-26 02:26:04,853 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ff1b372a-9251-49a2-a871-67f47050510d
2025-05-26 02:26:04,864 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/665fd453-9004-4b72-9a93-40e46b4f0072
2025-05-26 02:26:04,882 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13738830', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10441956600044013721', 'uuid-lslong': '10103233981241173426'}, 'enable': 'true', 'created': '2025-05-26T02:26:02', 'last-modified': '2025-05-26T02:26:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598631'}
2025-05-26 02:26:04,889 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 02:26:04,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09805313 passed
2025-05-26 02:26:04,889 - DEBUG - ====Verifying policy data for ctest-vn-09805313 in API_Server ======
2025-05-26 02:26:04,889 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-26 02:26:04,896 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8606105-62e7-41e1-a8aa-b4fe3743fec8
2025-05-26 02:26:04,914 - DEBUG - Requesting: http://10.0.0.50:8082/project/6718cbb3-9c8a-4cf5-b382-048ae3139016
2025-05-26 02:26:05,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/90e94834-31ab-4899-8c35-e5c6d68925b2
2025-05-26 02:26:05,025 - DEBUG - ==>Verifying data for policy with id: 60bdd986-ec29-480a-bd19-0e2ba9bda32d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13738830', 'ctest-policy-allow-all-51309539']
2025-05-26 02:26:05,025 - INFO - VN ctest-vn-09805313 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 02:26:05,025 - DEBUG - Verifying the vn in opserver
2025-05-26 02:26:05,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313 virtual network link through opserver 10.0.0.50
2025-05-26 02:26:05,025 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-26 02:26:05,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313?flat'}
2025-05-26 02:26:05,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13738830:ctest-vn-09805313 is found in opserver
2025-05-26 02:26:05,057 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 02:26:05,063 - DEBUG - VRF ids for VN ctest-vn-09805313: {}
2025-05-26 02:26:05,156 - DEBUG - Services list from nova: [