2025-05-29 02:33:41,649 - INFO - Domain Default found not creating
2025-05-29 02:33:41,790 - INFO - Project ctest-TestBasicPolicy-26323650 not found, creating it
2025-05-29 02:33:42,226 - INFO - Created Project:ctest-TestBasicPolicy-26323650, ID : 5d5c0684-d621-4ca3-aedf-4a7449833a2d
2025-05-29 02:33:43,597 - INFO - ================================================================================
2025-05-29 02:33:43,597 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-29 02:33:43,597 - 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-29 02:33:43,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-29 02:33:43,852 - INFO - Initial checks done. Running the testcase now
2025-05-29 02:33:43,853 - INFO -
2025-05-29 02:33:44,383 - DEBUG - Response for create_network : {'network': {'id': '6ec2e90e-8f4d-49f0-867c-6242e06a4cc6', 'name': 'ctest-vn-45941953', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-vn-45941953'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:33:44,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afbb5e4f-1a45-41df-8075-2a0dfc34cea5', 'name': '', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'network_id': '6ec2e90e-8f4d-49f0-867c-6242e06a4cc6', 'ip_version': 4, 'cidr': '187.255.101.128/26', 'allocation_pools': [{'start': '187.255.101.130', 'end': '187.255.101.190'}], 'gateway_ip': '187.255.101.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.255.101.130', 'tags': [], 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d'}}
2025-05-29 02:33:44,548 - INFO - Created VN ctest-vn-45941953
2025-05-29 02:33:44,602 - DEBUG - VN ctest-vn-45941953 UUID is 6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:44,930 - DEBUG - Response for create_network : {'network': {'id': '1985fdaf-5450-491b-bc49-55efb99b75f4', 'name': 'ctest-vn-04779229', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-vn-04779229'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:33:45,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d23f26-cf1f-4a6c-b34f-c50bca17be27', 'name': '', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'network_id': '1985fdaf-5450-491b-bc49-55efb99b75f4', 'ip_version': 4, 'cidr': '142.49.87.192/26', 'allocation_pools': [{'start': '142.49.87.194', 'end': '142.49.87.254'}], 'gateway_ip': '142.49.87.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.49.87.194', 'tags': [], 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d'}}
2025-05-29 02:33:45,093 - INFO - Created VN ctest-vn-04779229
2025-05-29 02:33:45,146 - DEBUG - VN ctest-vn-04779229 UUID is 1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:45,261 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953, 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-26323650:ctest-vn-04779229, 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-29 02:33:45,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ec2e90e-8f4d-49f0-867c-6242e06a4cc6', 'name': 'ctest-vn-45941953', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afbb5e4f-1a45-41df-8075-2a0dfc34cea5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-vn-45941953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-policy-allow-all-14704363']], 'subnet_ipam': [{'subnet_cidr': '187.255.101.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:33:45,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1985fdaf-5450-491b-bc49-55efb99b75f4', 'name': 'ctest-vn-04779229', 'tenant_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'project_id': '5d5c0684d6214ca3aedf4a7449833a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47d23f26-cf1f-4a6c-b34f-c50bca17be27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-vn-04779229'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-policy-allow-all-14704363']], 'subnet_ipam': [{'subnet_cidr': '142.49.87.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 02:33:45,958 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 02:33:46,261 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 02:33:46,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f81aa09d-1fe5-4b7d-b67f-71ff8d76c3e6
2025-05-29 02:33:46,300 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d5c0684-d621-4ca3-aedf-4a7449833a2d
2025-05-29 02:33:46,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,394 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6f4a044-ff4c-4896-b9df-9a26f8254206
2025-05-29 02:33:46,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6f4a044-ff4c-4896-b9df-9a26f8254206
2025-05-29 02:33:46,418 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e34c3ea-fc55-4a65-929c-8d2db086e77e
2025-05-29 02:33:46,425 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 02:33:46,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6f4a044-ff4c-4896-b9df-9a26f8254206
2025-05-29 02:33:46,449 - INFO - Verified VN network id 8 for VN 6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,449 - INFO - Verifications in API Server for VN ctest-vn-45941953 passed
2025-05-29 02:33:46,449 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6f4a044-ff4c-4896-b9df-9a26f8254206
2025-05-29 02:33:46,466 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6f4a044-ff4c-4896-b9df-9a26f8254206
2025-05-29 02:33:46,472 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e34c3ea-fc55-4a65-929c-8d2db086e77e
2025-05-29 02:33:46,484 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26323650', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7981197738396961264', 'uuid-lslong': '9690728537566891206'}, 'enable': 'true', 'created': '2025-05-29T02:33:44', 'last-modified': '2025-05-29T02:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953212'}
2025-05-29 02:33:46,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 02:33:46,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45941953 passed
2025-05-29 02:33:46,490 - DEBUG - ====Verifying policy data for ctest-vn-45941953 in API_Server ======
2025-05-29 02:33:46,490 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 02:33:46,496 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f81aa09d-1fe5-4b7d-b67f-71ff8d76c3e6
2025-05-29 02:33:46,511 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d5c0684-d621-4ca3-aedf-4a7449833a2d
2025-05-29 02:33:46,588 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ec2e90e-8f4d-49f0-867c-6242e06a4cc6
2025-05-29 02:33:46,598 - DEBUG - ==>Verifying data for policy with id: 24e718be-2623-416f-b0f4-ae127de84590, fqn: ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-policy-allow-all-14704363']
2025-05-29 02:33:46,598 - INFO - VN ctest-vn-45941953 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 02:33:46,598 - DEBUG - Verifying the vn in opserver
2025-05-29 02:33:46,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953 virtual network link through opserver 10.0.0.38
2025-05-29 02:33:46,599 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 02:33:46,893 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 02:33:46,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953?flat'}
2025-05-29 02:33:46,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-45941953 is found in opserver
2025-05-29 02:33:46,957 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 02:33:46,963 - DEBUG - VRF ids for VN ctest-vn-45941953: {}
2025-05-29 02:33:46,963 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 02:33:46,969 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f81aa09d-1fe5-4b7d-b67f-71ff8d76c3e6
2025-05-29 02:33:46,981 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d5c0684-d621-4ca3-aedf-4a7449833a2d
2025-05-29 02:33:47,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7874168-f018-4051-a20c-019ce0ed9914
2025-05-29 02:33:47,081 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7874168-f018-4051-a20c-019ce0ed9914
2025-05-29 02:33:47,088 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cfbdd3ef-ce4c-4791-ab10-6df18e17e723
2025-05-29 02:33:47,095 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 02:33:47,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,103 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7874168-f018-4051-a20c-019ce0ed9914
2025-05-29 02:33:47,117 - INFO - Verified VN network id 9 for VN 1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,117 - INFO - Verifications in API Server for VN ctest-vn-04779229 passed
2025-05-29 02:33:47,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7874168-f018-4051-a20c-019ce0ed9914
2025-05-29 02:33:47,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7874168-f018-4051-a20c-019ce0ed9914
2025-05-29 02:33:47,140 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cfbdd3ef-ce4c-4791-ab10-6df18e17e723
2025-05-29 02:33:47,151 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-04779229', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26323650', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1839154952326367515', 'uuid-lslong': '13567469840529847796'}, 'enable': 'true', 'created': '2025-05-29T02:33:44', 'last-modified': '2025-05-29T02:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386436'}
2025-05-29 02:33:47,157 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 02:33:47,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04779229 passed
2025-05-29 02:33:47,157 - DEBUG - ====Verifying policy data for ctest-vn-04779229 in API_Server ======
2025-05-29 02:33:47,157 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 02:33:47,164 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f81aa09d-1fe5-4b7d-b67f-71ff8d76c3e6
2025-05-29 02:33:47,176 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d5c0684-d621-4ca3-aedf-4a7449833a2d
2025-05-29 02:33:47,258 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1985fdaf-5450-491b-bc49-55efb99b75f4
2025-05-29 02:33:47,268 - DEBUG - ==>Verifying data for policy with id: 24e718be-2623-416f-b0f4-ae127de84590, fqn: ['default-domain', 'ctest-TestBasicPolicy-26323650', 'ctest-policy-allow-all-14704363']
2025-05-29 02:33:47,268 - INFO - VN ctest-vn-04779229 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 02:33:47,268 - DEBUG - Verifying the vn in opserver
2025-05-29 02:33:47,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-04779229 virtual network link through opserver 10.0.0.38
2025-05-29 02:33:47,268 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 02:33:47,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-04779229', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-04779229?flat'}
2025-05-29 02:33:47,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26323650:ctest-vn-04779229 is found in opserver
2025-05-29 02:33:47,289 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 02:33:47,293 - DEBUG - VRF ids for VN ctest-vn-04779229: {}
2025-05-29 02:33:47,344 - DEBUG - Services list from nova: [