2025-04-11 14:57:58,524 - INFO - Domain Default found not creating
2025-04-11 14:57:58,670 - INFO - Project ctest-TestBasicPolicy-94525524 not found, creating it
2025-04-11 14:57:59,121 - INFO - Created Project:ctest-TestBasicPolicy-94525524, ID : 5e7a24b6-60b1-485f-857f-b6f65ac1776a
2025-04-11 14:58:00,591 - INFO - ================================================================================
2025-04-11 14:58:00,591 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-11 14:58:00,591 - 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-11 14:58:00,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-04-11 14:58:00,845 - INFO - Initial checks done. Running the testcase now
2025-04-11 14:58:00,845 - INFO -
2025-04-11 14:58:01,396 - DEBUG - Response for create_network : {'network': {'id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'name': 'ctest-vn-46382693', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-46382693'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:01,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b7bd3a7-7b26-4103-b223-99c8dd55feb2', 'name': '', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'network_id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'ip_version': 4, 'cidr': '202.67.62.128/26', 'allocation_pools': [{'start': '202.67.62.130', 'end': '202.67.62.190'}], 'gateway_ip': '202.67.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.67.62.130', 'tags': [], 'project_id': '5e7a24b660b1485f857fb6f65ac1776a'}}
2025-04-11 14:58:01,622 - INFO - Created VN ctest-vn-46382693
2025-04-11 14:58:01,674 - DEBUG - VN ctest-vn-46382693 UUID is 463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:01,980 - DEBUG - Response for create_network : {'network': {'id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'name': 'ctest-vn-34322545', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-34322545'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:02,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba1d274d-0c14-48fe-b325-10a407bbe5a4', 'name': '', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'network_id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'ip_version': 4, 'cidr': '163.172.106.192/26', 'allocation_pools': [{'start': '163.172.106.194', 'end': '163.172.106.254'}], 'gateway_ip': '163.172.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.172.106.194', 'tags': [], 'project_id': '5e7a24b660b1485f857fb6f65ac1776a'}}
2025-04-11 14:58:02,160 - INFO - Created VN ctest-vn-34322545
2025-04-11 14:58:02,214 - DEBUG - VN ctest-vn-34322545 UUID is 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:02,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693, 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-94525524:ctest-vn-34322545, 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-11 14:58:02,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'name': 'ctest-vn-46382693', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b7bd3a7-7b26-4103-b223-99c8dd55feb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-46382693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']], 'subnet_ipam': [{'subnet_cidr': '202.67.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:02,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'name': 'ctest-vn-34322545', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba1d274d-0c14-48fe-b325-10a407bbe5a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-34322545'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']], 'subnet_ipam': [{'subnet_cidr': '163.172.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:03,082 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-11 14:58:03,383 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-11 14:58:03,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f
2025-04-11 14:58:03,438 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a
2025-04-11 14:58:03,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,549 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b
2025-04-11 14:58:03,558 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b
2025-04-11 14:58:03,566 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d08c89c-ba58-48d3-baf3-e01bb99ec951
2025-04-11 14:58:03,574 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 14:58:03,574 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,585 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b
2025-04-11 14:58:03,603 - INFO - Verified VN network id 8 for VN 463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,603 - INFO - Verifications in API Server for VN ctest-vn-46382693 passed
2025-04-11 14:58:03,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,615 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b
2025-04-11 14:58:03,626 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b
2025-04-11 14:58:03,636 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d08c89c-ba58-48d3-baf3-e01bb99ec951
2025-04-11 14:58:03,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94525524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060502737046618387', 'uuid-lslong': '12972266145615862591'}, 'enable': 'true', 'created': '2025-04-11T14:58:01', 'last-modified': '2025-04-11T14:58:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035508'}
2025-04-11 14:58:03,657 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 14:58:03,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46382693 passed
2025-04-11 14:58:03,657 - DEBUG - ====Verifying policy data for ctest-vn-46382693 in API_Server ======
2025-04-11 14:58:03,657 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-11 14:58:03,664 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f
2025-04-11 14:58:03,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a
2025-04-11 14:58:03,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f
2025-04-11 14:58:03,766 - DEBUG - ==>Verifying data for policy with id: 45e352f7-9b40-4824-9f34-2ac405ba5ecd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']
2025-04-11 14:58:03,767 - INFO - VN ctest-vn-46382693 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 14:58:03,767 - DEBUG - Verifying the vn in opserver
2025-04-11 14:58:03,767 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693 virtual network link through opserver 10.0.0.50
2025-04-11 14:58:03,767 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-11 14:58:04,060 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-11 14:58:04,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693?flat'}
2025-04-11 14:58:04,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693 is found in opserver
2025-04-11 14:58:04,130 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 14:58:04,136 - DEBUG - VRF ids for VN ctest-vn-46382693: {}
2025-04-11 14:58:04,136 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-11 14:58:04,143 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f
2025-04-11 14:58:04,155 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a
2025-04-11 14:58:04,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe
2025-04-11 14:58:04,265 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe
2025-04-11 14:58:04,273 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29014d54-56d1-41e9-bf2d-369b26188698
2025-04-11 14:58:04,280 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 14:58:04,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe
2025-04-11 14:58:04,306 - INFO - Verified VN network id 9 for VN 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,306 - INFO - Verifications in API Server for VN ctest-vn-34322545 passed
2025-04-11 14:58:04,306 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,318 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe
2025-04-11 14:58:04,326 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe
2025-04-11 14:58:04,336 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29014d54-56d1-41e9-bf2d-369b26188698
2025-04-11 14:58:04,351 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94525524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3390139401682635984', 'uuid-lslong': '10074503223860113494'}, 'enable': 'true', 'created': '2025-04-11T14:58:01', 'last-modified': '2025-04-11T14:58:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487560'}
2025-04-11 14:58:04,358 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 14:58:04,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34322545 passed
2025-04-11 14:58:04,358 - DEBUG - ====Verifying policy data for ctest-vn-34322545 in API_Server ======
2025-04-11 14:58:04,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-11 14:58:04,364 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f
2025-04-11 14:58:04,380 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a
2025-04-11 14:58:04,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056
2025-04-11 14:58:04,465 - DEBUG - ==>Verifying data for policy with id: 45e352f7-9b40-4824-9f34-2ac405ba5ecd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']
2025-04-11 14:58:04,465 - INFO - VN ctest-vn-34322545 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 14:58:04,465 - DEBUG - Verifying the vn in opserver
2025-04-11 14:58:04,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545 virtual network link through opserver 10.0.0.50
2025-04-11 14:58:04,466 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-11 14:58:04,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545?flat'}
2025-04-11 14:58:04,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545 is found in opserver
2025-04-11 14:58:04,489 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 14:58:04,495 - DEBUG - VRF ids for VN ctest-vn-34322545: {}
2025-04-11 14:58:04,557 - DEBUG - Services list from nova: [