2025-01-15 03:25:01,263 - INFO - Domain Default found not creating
2025-01-15 03:25:01,476 - INFO - Project ctest-TestBasicPolicy-57348380 not found, creating it
2025-01-15 03:25:02,010 - INFO - Created Project:ctest-TestBasicPolicy-57348380, ID : b01449e0-da79-4986-8913-bbb65dbdcd9b
2025-01-15 03:25:03,828 - INFO - ================================================================================
2025-01-15 03:25:03,828 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 03:25:03,828 - 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-01-15 03:25:04,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with
2025-01-15 03:25:04,112 - INFO - Initial checks done. Running the testcase now
2025-01-15 03:25:04,112 - INFO -
2025-01-15 03:25:04,813 - DEBUG - Response for create_network : {'network': {'id': '603497ee-7419-456e-8499-5aa7286559b3', 'name': 'ctest-vn-04016429', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'project_id': 'b01449e0da7949868913bbb65dbdcd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-vn-04016429'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 03:25:05,080 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9ae6a61-7ad0-4c57-91b8-a91e126d4205', 'name': '', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'network_id': '603497ee-7419-456e-8499-5aa7286559b3', 'ip_version': 4, 'cidr': '166.79.211.64/26', 'allocation_pools': [{'start': '166.79.211.66', 'end': '166.79.211.126'}], 'gateway_ip': '166.79.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.79.211.66', 'tags': [], 'project_id': 'b01449e0da7949868913bbb65dbdcd9b'}}
2025-01-15 03:25:05,103 - INFO - Created VN ctest-vn-04016429
2025-01-15 03:25:05,158 - DEBUG - VN ctest-vn-04016429 UUID is 603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:05,543 - DEBUG - Response for create_network : {'network': {'id': '38b59ff8-af78-4f0b-b849-33573a327236', 'name': 'ctest-vn-73803913', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'project_id': 'b01449e0da7949868913bbb65dbdcd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-vn-73803913'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 03:25:05,788 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f68d556a-c4b0-48e7-9b84-f7645d8f5ff4', 'name': '', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'network_id': '38b59ff8-af78-4f0b-b849-33573a327236', 'ip_version': 4, 'cidr': '169.41.116.192/26', 'allocation_pools': [{'start': '169.41.116.194', 'end': '169.41.116.254'}], 'gateway_ip': '169.41.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.41.116.194', 'tags': [], 'project_id': 'b01449e0da7949868913bbb65dbdcd9b'}}
2025-01-15 03:25:05,813 - INFO - Created VN ctest-vn-73803913
2025-01-15 03:25:05,870 - DEBUG - VN ctest-vn-73803913 UUID is 38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:05,998 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429, 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-57348380:ctest-vn-73803913, 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-01-15 03:25:06,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '603497ee-7419-456e-8499-5aa7286559b3', 'name': 'ctest-vn-04016429', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'project_id': 'b01449e0da7949868913bbb65dbdcd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9ae6a61-7ad0-4c57-91b8-a91e126d4205'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-vn-04016429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-policy-allow-all-76289432']], 'subnet_ipam': [{'subnet_cidr': '166.79.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 03:25:06,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38b59ff8-af78-4f0b-b849-33573a327236', 'name': 'ctest-vn-73803913', 'tenant_id': 'b01449e0da7949868913bbb65dbdcd9b', 'project_id': 'b01449e0da7949868913bbb65dbdcd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f68d556a-c4b0-48e7-9b84-f7645d8f5ff4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-vn-73803913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-policy-allow-all-76289432']], 'subnet_ipam': [{'subnet_cidr': '169.41.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 03:25:06,774 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-15 03:25:07,123 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-15 03:25:07,172 - DEBUG - Requesting: http://10.0.0.27:8082/domain/974e7c0e-4794-4267-bb14-0f4fe9260863
2025-01-15 03:25:07,192 - DEBUG - Requesting: http://10.0.0.27:8082/project/b01449e0-da79-4986-8913-bbb65dbdcd9b
2025-01-15 03:25:07,283 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,299 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,313 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2dd5de4a-e1f7-4909-b4c9-1af181665dce
2025-01-15 03:25:07,324 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2dd5de4a-e1f7-4909-b4c9-1af181665dce
2025-01-15 03:25:07,332 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d6a17924-1588-472a-8e04-cd2225eab642
2025-01-15 03:25:07,341 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 03:25:07,341 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,356 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2dd5de4a-e1f7-4909-b4c9-1af181665dce
2025-01-15 03:25:07,377 - INFO - Verified VN network id 8 for VN 603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,377 - INFO - Verifications in API Server for VN ctest-vn-04016429 passed
2025-01-15 03:25:07,377 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,391 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2dd5de4a-e1f7-4909-b4c9-1af181665dce
2025-01-15 03:25:07,400 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2dd5de4a-e1f7-4909-b4c9-1af181665dce
2025-01-15 03:25:07,411 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d6a17924-1588-472a-8e04-cd2225eab642
2025-01-15 03:25:07,428 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57348380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6932332776835859822', 'uuid-lslong': '9554767758426986931'}, 'enable': 'true', 'created': '2025-01-15T03:25:04', 'last-modified': '2025-01-15T03:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.128571'}
2025-01-15 03:25:07,437 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 03:25:07,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04016429 passed
2025-01-15 03:25:07,438 - DEBUG - ====Verifying policy data for ctest-vn-04016429 in API_Server ======
2025-01-15 03:25:07,438 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-15 03:25:07,446 - DEBUG - Requesting: http://10.0.0.27:8082/domain/974e7c0e-4794-4267-bb14-0f4fe9260863
2025-01-15 03:25:07,462 - DEBUG - Requesting: http://10.0.0.27:8082/project/b01449e0-da79-4986-8913-bbb65dbdcd9b
2025-01-15 03:25:07,550 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/603497ee-7419-456e-8499-5aa7286559b3
2025-01-15 03:25:07,564 - DEBUG - ==>Verifying data for policy with id: 456eda5b-71eb-4c62-973f-d6426193659a, fqn: ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-policy-allow-all-76289432']
2025-01-15 03:25:07,564 - INFO - VN ctest-vn-04016429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 03:25:07,564 - DEBUG - Verifying the vn in opserver
2025-01-15 03:25:07,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429 virtual network link through opserver 10.0.0.27
2025-01-15 03:25:07,564 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-15 03:25:07,910 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-15 03:25:07,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429?flat'}
2025-01-15 03:25:07,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-04016429 is found in opserver
2025-01-15 03:25:07,996 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 03:25:08,003 - DEBUG - VRF ids for VN ctest-vn-04016429: {}
2025-01-15 03:25:08,004 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-15 03:25:08,012 - DEBUG - Requesting: http://10.0.0.27:8082/domain/974e7c0e-4794-4267-bb14-0f4fe9260863
2025-01-15 03:25:08,029 - DEBUG - Requesting: http://10.0.0.27:8082/project/b01449e0-da79-4986-8913-bbb65dbdcd9b
2025-01-15 03:25:08,111 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,130 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,144 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e5c5c449-8101-4017-874a-482db11e9e32
2025-01-15 03:25:08,158 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e5c5c449-8101-4017-874a-482db11e9e32
2025-01-15 03:25:08,168 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/20e98c7d-e5d1-480e-8ca6-04070cfdfaea
2025-01-15 03:25:08,179 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 03:25:08,179 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,194 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e5c5c449-8101-4017-874a-482db11e9e32
2025-01-15 03:25:08,217 - INFO - Verified VN network id 9 for VN 38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,217 - INFO - Verifications in API Server for VN ctest-vn-73803913 passed
2025-01-15 03:25:08,217 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,234 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e5c5c449-8101-4017-874a-482db11e9e32
2025-01-15 03:25:08,245 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e5c5c449-8101-4017-874a-482db11e9e32
2025-01-15 03:25:08,255 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/20e98c7d-e5d1-480e-8ca6-04070cfdfaea
2025-01-15 03:25:08,271 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-73803913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57348380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4086348127353196299', 'uuid-lslong': '13279201426010174006'}, 'enable': 'true', 'created': '2025-01-15T03:25:05', 'last-modified': '2025-01-15T03:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.699401'}
2025-01-15 03:25:08,279 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 03:25:08,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73803913 passed
2025-01-15 03:25:08,279 - DEBUG - ====Verifying policy data for ctest-vn-73803913 in API_Server ======
2025-01-15 03:25:08,279 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-15 03:25:08,287 - DEBUG - Requesting: http://10.0.0.27:8082/domain/974e7c0e-4794-4267-bb14-0f4fe9260863
2025-01-15 03:25:08,302 - DEBUG - Requesting: http://10.0.0.27:8082/project/b01449e0-da79-4986-8913-bbb65dbdcd9b
2025-01-15 03:25:08,384 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/38b59ff8-af78-4f0b-b849-33573a327236
2025-01-15 03:25:08,396 - DEBUG - ==>Verifying data for policy with id: 456eda5b-71eb-4c62-973f-d6426193659a, fqn: ['default-domain', 'ctest-TestBasicPolicy-57348380', 'ctest-policy-allow-all-76289432']
2025-01-15 03:25:08,397 - INFO - VN ctest-vn-73803913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 03:25:08,397 - DEBUG - Verifying the vn in opserver
2025-01-15 03:25:08,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-73803913 virtual network link through opserver 10.0.0.27
2025-01-15 03:25:08,397 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-15 03:25:08,413 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-73803913', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-73803913?flat'}
2025-01-15 03:25:08,413 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57348380:ctest-vn-73803913 is found in opserver
2025-01-15 03:25:08,428 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 03:25:08,435 - DEBUG - VRF ids for VN ctest-vn-73803913: {}
2025-01-15 03:25:08,501 - DEBUG - Services list from nova: [