2025-04-30 11:27:42,970 - INFO - Domain Default found not creating
2025-04-30 11:27:43,095 - INFO - Project ctest-TestBasicPolicy-65548555 not found, creating it
2025-04-30 11:27:43,521 - INFO - Created Project:ctest-TestBasicPolicy-65548555, ID : 8f0bd39e-e62d-4dda-a058-b8329f17beea
2025-04-30 11:27:44,869 - INFO - ================================================================================
2025-04-30 11:27:44,869 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-30 11:27:44,869 - 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-04-30 11:27:45,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-30 11:27:45,129 - INFO - Initial checks done. Running the testcase now
2025-04-30 11:27:45,129 - INFO -
2025-04-30 11:27:45,661 - DEBUG - Response for create_network : {'network': {'id': '81fa4e41-d58f-4840-8833-c80d1580efc1', 'name': 'ctest-vn-12351971', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-vn-12351971'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:27:45,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f47c1590-98c7-463a-912d-9590fcd3e57f', 'name': '', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'network_id': '81fa4e41-d58f-4840-8833-c80d1580efc1', 'ip_version': 4, 'cidr': '72.86.201.0/26', 'allocation_pools': [{'start': '72.86.201.2', 'end': '72.86.201.62'}], 'gateway_ip': '72.86.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.86.201.2', 'tags': [], 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea'}}
2025-04-30 11:27:45,854 - INFO - Created VN ctest-vn-12351971
2025-04-30 11:27:45,904 - DEBUG - VN ctest-vn-12351971 UUID is 81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:46,226 - DEBUG - Response for create_network : {'network': {'id': '9a917c98-0f3a-4c19-a8af-0ec5e14e245b', 'name': 'ctest-vn-74958833', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-vn-74958833'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:27:46,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '64950f23-f023-4bb0-be92-bb3aa4bf27c1', 'name': '', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'network_id': '9a917c98-0f3a-4c19-a8af-0ec5e14e245b', 'ip_version': 4, 'cidr': '189.186.157.192/26', 'allocation_pools': [{'start': '189.186.157.194', 'end': '189.186.157.254'}], 'gateway_ip': '189.186.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.186.157.194', 'tags': [], 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea'}}
2025-04-30 11:27:46,401 - INFO - Created VN ctest-vn-74958833
2025-04-30 11:27:46,452 - DEBUG - VN ctest-vn-74958833 UUID is 9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:46,596 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971, 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-65548555:ctest-vn-74958833, 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-04-30 11:27:46,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81fa4e41-d58f-4840-8833-c80d1580efc1', 'name': 'ctest-vn-12351971', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f47c1590-98c7-463a-912d-9590fcd3e57f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-vn-12351971'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-policy-allow-all-96930173']], 'subnet_ipam': [{'subnet_cidr': '72.86.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:27:47,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a917c98-0f3a-4c19-a8af-0ec5e14e245b', 'name': 'ctest-vn-74958833', 'tenant_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'project_id': '8f0bd39ee62d4ddaa058b8329f17beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64950f23-f023-4bb0-be92-bb3aa4bf27c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-vn-74958833'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-policy-allow-all-96930173']], 'subnet_ipam': [{'subnet_cidr': '189.186.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:27:47,292 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 11:27:47,589 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 11:27:47,613 - DEBUG - Requesting: http://10.0.0.38:8082/domain/27b0ab73-5356-4339-8288-37ca7243669a
2025-04-30 11:27:47,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/8f0bd39e-e62d-4dda-a058-b8329f17beea
2025-04-30 11:27:47,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,719 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dfcdd03-31b4-435b-96d2-12b6968edd32
2025-04-30 11:27:47,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dfcdd03-31b4-435b-96d2-12b6968edd32
2025-04-30 11:27:47,731 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f55e873-1826-480f-b9ce-afe3aaeec8c2
2025-04-30 11:27:47,737 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 11:27:47,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,745 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dfcdd03-31b4-435b-96d2-12b6968edd32
2025-04-30 11:27:47,757 - INFO - Verified VN network id 8 for VN 81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,757 - INFO - Verifications in API Server for VN ctest-vn-12351971 passed
2025-04-30 11:27:47,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dfcdd03-31b4-435b-96d2-12b6968edd32
2025-04-30 11:27:47,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dfcdd03-31b4-435b-96d2-12b6968edd32
2025-04-30 11:27:47,777 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f55e873-1826-480f-b9ce-afe3aaeec8c2
2025-04-30 11:27:47,788 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65548555', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9365884419733145664', 'uuid-lslong': '9814407971491344321'}, 'enable': 'true', 'created': '2025-04-30T11:27:45', 'last-modified': '2025-04-30T11:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914986'}
2025-04-30 11:27:47,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 11:27:47,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12351971 passed
2025-04-30 11:27:47,795 - DEBUG - ====Verifying policy data for ctest-vn-12351971 in API_Server ======
2025-04-30 11:27:47,795 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 11:27:47,800 - DEBUG - Requesting: http://10.0.0.38:8082/domain/27b0ab73-5356-4339-8288-37ca7243669a
2025-04-30 11:27:47,813 - DEBUG - Requesting: http://10.0.0.38:8082/project/8f0bd39e-e62d-4dda-a058-b8329f17beea
2025-04-30 11:27:47,888 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/81fa4e41-d58f-4840-8833-c80d1580efc1
2025-04-30 11:27:47,897 - DEBUG - ==>Verifying data for policy with id: 0e24d0f8-5454-4d19-b294-519e71d5a367, fqn: ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-policy-allow-all-96930173']
2025-04-30 11:27:47,897 - INFO - VN ctest-vn-12351971 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 11:27:47,897 - DEBUG - Verifying the vn in opserver
2025-04-30 11:27:47,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971 virtual network link through opserver 10.0.0.38
2025-04-30 11:27:47,897 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 11:27:48,183 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 11:27:48,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971?flat'}
2025-04-30 11:27:48,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-12351971 is found in opserver
2025-04-30 11:27:48,241 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 11:27:48,245 - DEBUG - VRF ids for VN ctest-vn-12351971: {}
2025-04-30 11:27:48,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 11:27:48,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/27b0ab73-5356-4339-8288-37ca7243669a
2025-04-30 11:27:48,261 - DEBUG - Requesting: http://10.0.0.38:8082/project/8f0bd39e-e62d-4dda-a058-b8329f17beea
2025-04-30 11:27:48,330 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26104b0f-ce0c-4c6c-a81d-85800a44f563
2025-04-30 11:27:48,356 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26104b0f-ce0c-4c6c-a81d-85800a44f563
2025-04-30 11:27:48,361 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/241e6ee7-e730-4c91-9cd6-26bab68788bc
2025-04-30 11:27:48,367 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 11:27:48,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26104b0f-ce0c-4c6c-a81d-85800a44f563
2025-04-30 11:27:48,387 - INFO - Verified VN network id 9 for VN 9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,387 - INFO - Verifications in API Server for VN ctest-vn-74958833 passed
2025-04-30 11:27:48,387 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,395 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26104b0f-ce0c-4c6c-a81d-85800a44f563
2025-04-30 11:27:48,401 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26104b0f-ce0c-4c6c-a81d-85800a44f563
2025-04-30 11:27:48,406 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/241e6ee7-e730-4c91-9cd6-26bab68788bc
2025-04-30 11:27:48,417 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-74958833', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65548555', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11137820345996299289', 'uuid-lslong': '12154950162347598939'}, 'enable': 'true', 'created': '2025-04-30T11:27:46', 'last-modified': '2025-04-30T11:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324226'}
2025-04-30 11:27:48,423 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 11:27:48,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74958833 passed
2025-04-30 11:27:48,423 - DEBUG - ====Verifying policy data for ctest-vn-74958833 in API_Server ======
2025-04-30 11:27:48,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 11:27:48,428 - DEBUG - Requesting: http://10.0.0.38:8082/domain/27b0ab73-5356-4339-8288-37ca7243669a
2025-04-30 11:27:48,438 - DEBUG - Requesting: http://10.0.0.38:8082/project/8f0bd39e-e62d-4dda-a058-b8329f17beea
2025-04-30 11:27:48,508 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a917c98-0f3a-4c19-a8af-0ec5e14e245b
2025-04-30 11:27:48,517 - DEBUG - ==>Verifying data for policy with id: 0e24d0f8-5454-4d19-b294-519e71d5a367, fqn: ['default-domain', 'ctest-TestBasicPolicy-65548555', 'ctest-policy-allow-all-96930173']
2025-04-30 11:27:48,517 - INFO - VN ctest-vn-74958833 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 11:27:48,517 - DEBUG - Verifying the vn in opserver
2025-04-30 11:27:48,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-74958833 virtual network link through opserver 10.0.0.38
2025-04-30 11:27:48,517 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 11:27:48,526 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-74958833', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-74958833?flat'}
2025-04-30 11:27:48,526 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65548555:ctest-vn-74958833 is found in opserver
2025-04-30 11:27:48,535 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 11:27:48,540 - DEBUG - VRF ids for VN ctest-vn-74958833: {}
2025-04-30 11:27:48,587 - DEBUG - Services list from nova: [