2025-07-22 11:29:37,819 - INFO - Domain Default found not creating
2025-07-22 11:29:37,978 - INFO - Project ctest-TestBasicPolicy-92369509 not found, creating it
2025-07-22 11:29:38,480 - INFO - Created Project:ctest-TestBasicPolicy-92369509, ID : 5aeb28b7-0547-4d2e-ad5b-46d71d4794e4
2025-07-22 11:29:39,931 - INFO - ================================================================================
2025-07-22 11:29:39,931 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 11:29:39,931 - 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-07-22 11:29:40,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.18': '0'}} with
2025-07-22 11:29:40,192 - INFO - Initial checks done. Running the testcase now
2025-07-22 11:29:40,192 - INFO -
2025-07-22 11:29:41,318 - DEBUG - Response for create_network : {'network': {'id': '38140559-6346-4261-bf51-4a48f963091d', 'name': 'ctest-vn-63857013', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'project_id': '5aeb28b705474d2ead5b46d71d4794e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-vn-63857013'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:29:41,491 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c6e4278-d7c0-4d42-828d-74d4e395c4e9', 'name': '', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'network_id': '38140559-6346-4261-bf51-4a48f963091d', 'ip_version': 4, 'cidr': '91.27.97.192/26', 'allocation_pools': [{'start': '91.27.97.194', 'end': '91.27.97.254'}], 'gateway_ip': '91.27.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.27.97.194', 'tags': [], 'project_id': '5aeb28b705474d2ead5b46d71d4794e4'}}
2025-07-22 11:29:41,512 - INFO - Created VN ctest-vn-63857013
2025-07-22 11:29:41,569 - DEBUG - VN ctest-vn-63857013 UUID is 38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:41,908 - DEBUG - Response for create_network : {'network': {'id': '9b44d101-23aa-4049-bb43-bdf731f5b00c', 'name': 'ctest-vn-82980869', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'project_id': '5aeb28b705474d2ead5b46d71d4794e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-vn-82980869'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:29:42,129 - DEBUG - Response for create_subnet : {'subnet': {'id': '54abc979-4c35-49df-aa8a-83b999957ba1', 'name': '', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'network_id': '9b44d101-23aa-4049-bb43-bdf731f5b00c', 'ip_version': 4, 'cidr': '154.151.82.128/26', 'allocation_pools': [{'start': '154.151.82.130', 'end': '154.151.82.190'}], 'gateway_ip': '154.151.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.151.82.130', 'tags': [], 'project_id': '5aeb28b705474d2ead5b46d71d4794e4'}}
2025-07-22 11:29:42,150 - INFO - Created VN ctest-vn-82980869
2025-07-22 11:29:42,205 - DEBUG - VN ctest-vn-82980869 UUID is 9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:42,329 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013, 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-92369509:ctest-vn-82980869, 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-07-22 11:29:42,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38140559-6346-4261-bf51-4a48f963091d', 'name': 'ctest-vn-63857013', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'project_id': '5aeb28b705474d2ead5b46d71d4794e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c6e4278-d7c0-4d42-828d-74d4e395c4e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-vn-63857013'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-policy-allow-all-19185184']], 'subnet_ipam': [{'subnet_cidr': '91.27.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:29:42,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b44d101-23aa-4049-bb43-bdf731f5b00c', 'name': 'ctest-vn-82980869', 'tenant_id': '5aeb28b705474d2ead5b46d71d4794e4', 'project_id': '5aeb28b705474d2ead5b46d71d4794e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54abc979-4c35-49df-aa8a-83b999957ba1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-vn-82980869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-policy-allow-all-19185184']], 'subnet_ipam': [{'subnet_cidr': '154.151.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:29:43,033 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-22 11:29:43,338 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-22 11:29:43,370 - DEBUG - Requesting: http://10.0.0.65:8082/domain/4b3dbc26-0abc-4c64-9978-55f1c0a29c30
2025-07-22 11:29:43,385 - DEBUG - Requesting: http://10.0.0.65:8082/project/5aeb28b7-0547-4d2e-ad5b-46d71d4794e4
2025-07-22 11:29:43,464 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,476 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,488 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4515e67-a023-4776-afb8-5fdd74168ce4
2025-07-22 11:29:43,497 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4515e67-a023-4776-afb8-5fdd74168ce4
2025-07-22 11:29:43,505 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bcdc9859-bf4b-4b41-8ee9-c6293b0d457d
2025-07-22 11:29:43,513 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 11:29:43,513 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,524 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4515e67-a023-4776-afb8-5fdd74168ce4
2025-07-22 11:29:43,543 - INFO - Verified VN network id 12 for VN 38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,543 - INFO - Verifications in API Server for VN ctest-vn-63857013 passed
2025-07-22 11:29:43,543 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,557 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4515e67-a023-4776-afb8-5fdd74168ce4
2025-07-22 11:29:43,566 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b4515e67-a023-4776-afb8-5fdd74168ce4
2025-07-22 11:29:43,576 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bcdc9859-bf4b-4b41-8ee9-c6293b0d457d
2025-07-22 11:29:43,592 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92369509', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4040860647133954657', 'uuid-lslong': '13785881611639916829'}, 'enable': 'true', 'created': '2025-07-22T11:29:41', 'last-modified': '2025-07-22T11:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977641'}
2025-07-22 11:29:43,598 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 11:29:43,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63857013 passed
2025-07-22 11:29:43,599 - DEBUG - ====Verifying policy data for ctest-vn-63857013 in API_Server ======
2025-07-22 11:29:43,599 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-22 11:29:43,605 - DEBUG - Requesting: http://10.0.0.65:8082/domain/4b3dbc26-0abc-4c64-9978-55f1c0a29c30
2025-07-22 11:29:43,618 - DEBUG - Requesting: http://10.0.0.65:8082/project/5aeb28b7-0547-4d2e-ad5b-46d71d4794e4
2025-07-22 11:29:43,693 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38140559-6346-4261-bf51-4a48f963091d
2025-07-22 11:29:43,703 - DEBUG - ==>Verifying data for policy with id: 0fa67036-8e98-4bd1-a827-a86fe71040b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-policy-allow-all-19185184']
2025-07-22 11:29:43,703 - INFO - VN ctest-vn-63857013 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 11:29:43,703 - DEBUG - Verifying the vn in opserver
2025-07-22 11:29:43,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013 virtual network link through opserver 10.0.0.65
2025-07-22 11:29:43,704 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-22 11:29:43,994 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-22 11:29:44,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013?flat'}
2025-07-22 11:29:44,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-63857013 is found in opserver
2025-07-22 11:29:44,069 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 11:29:44,076 - DEBUG - VRF ids for VN ctest-vn-63857013: {}
2025-07-22 11:29:44,076 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-22 11:29:44,084 - DEBUG - Requesting: http://10.0.0.65:8082/domain/4b3dbc26-0abc-4c64-9978-55f1c0a29c30
2025-07-22 11:29:44,098 - DEBUG - Requesting: http://10.0.0.65:8082/project/5aeb28b7-0547-4d2e-ad5b-46d71d4794e4
2025-07-22 11:29:44,181 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,197 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,209 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/988aae83-d6d3-4fe7-a1d9-310efcd72076
2025-07-22 11:29:44,219 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/988aae83-d6d3-4fe7-a1d9-310efcd72076
2025-07-22 11:29:44,228 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/68fc91e6-6a52-43eb-944d-37a54d82ca89
2025-07-22 11:29:44,237 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 11:29:44,237 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,248 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/988aae83-d6d3-4fe7-a1d9-310efcd72076
2025-07-22 11:29:44,266 - INFO - Verified VN network id 13 for VN 9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,266 - INFO - Verifications in API Server for VN ctest-vn-82980869 passed
2025-07-22 11:29:44,267 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,279 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/988aae83-d6d3-4fe7-a1d9-310efcd72076
2025-07-22 11:29:44,288 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/988aae83-d6d3-4fe7-a1d9-310efcd72076
2025-07-22 11:29:44,296 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/68fc91e6-6a52-43eb-944d-37a54d82ca89
2025-07-22 11:29:44,313 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-82980869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92369509', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11188297177118687305', 'uuid-lslong': '13493837777924894732'}, 'enable': 'true', 'created': '2025-07-22T11:29:41', 'last-modified': '2025-07-22T11:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456382'}
2025-07-22 11:29:44,321 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 11:29:44,321 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82980869 passed
2025-07-22 11:29:44,321 - DEBUG - ====Verifying policy data for ctest-vn-82980869 in API_Server ======
2025-07-22 11:29:44,321 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-22 11:29:44,328 - DEBUG - Requesting: http://10.0.0.65:8082/domain/4b3dbc26-0abc-4c64-9978-55f1c0a29c30
2025-07-22 11:29:44,341 - DEBUG - Requesting: http://10.0.0.65:8082/project/5aeb28b7-0547-4d2e-ad5b-46d71d4794e4
2025-07-22 11:29:44,413 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9b44d101-23aa-4049-bb43-bdf731f5b00c
2025-07-22 11:29:44,426 - DEBUG - ==>Verifying data for policy with id: 0fa67036-8e98-4bd1-a827-a86fe71040b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-92369509', 'ctest-policy-allow-all-19185184']
2025-07-22 11:29:44,426 - INFO - VN ctest-vn-82980869 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 11:29:44,426 - DEBUG - Verifying the vn in opserver
2025-07-22 11:29:44,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-82980869 virtual network link through opserver 10.0.0.65
2025-07-22 11:29:44,426 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-22 11:29:44,438 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-82980869', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-82980869?flat'}
2025-07-22 11:29:44,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92369509:ctest-vn-82980869 is found in opserver
2025-07-22 11:29:44,449 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 11:29:44,456 - DEBUG - VRF ids for VN ctest-vn-82980869: {}
2025-07-22 11:29:44,516 - DEBUG - Services list from nova: [