2025-07-17 02:28:28,842 - INFO - Domain Default found not creating
2025-07-17 02:28:29,011 - INFO - Project ctest-TestBasicPolicy-56103874 not found, creating it
2025-07-17 02:28:29,512 - INFO - Created Project:ctest-TestBasicPolicy-56103874, ID : 5bbffa4f-99ca-47e1-9526-3fed81928bc4
2025-07-17 02:28:31,276 - INFO - ================================================================================
2025-07-17 02:28:31,277 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 02:28:31,277 - 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-17 02:28:31,534 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with
2025-07-17 02:28:31,534 - INFO - Initial checks done. Running the testcase now
2025-07-17 02:28:31,534 - INFO -
2025-07-17 02:28:32,166 - DEBUG - Response for create_network : {'network': {'id': 'a63322d9-93c3-460c-aa60-86e2c104636c', 'name': 'ctest-vn-61808611', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'project_id': '5bbffa4f99ca47e195263fed81928bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-vn-61808611'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:28:32,404 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a36825-5d97-45ba-8d34-bdf532b0c848', 'name': '', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'network_id': 'a63322d9-93c3-460c-aa60-86e2c104636c', 'ip_version': 4, 'cidr': '141.46.125.192/26', 'allocation_pools': [{'start': '141.46.125.194', 'end': '141.46.125.254'}], 'gateway_ip': '141.46.125.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.46.125.194', 'tags': [], 'project_id': '5bbffa4f99ca47e195263fed81928bc4'}}
2025-07-17 02:28:32,426 - INFO - Created VN ctest-vn-61808611
2025-07-17 02:28:32,483 - DEBUG - VN ctest-vn-61808611 UUID is a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:32,811 - DEBUG - Response for create_network : {'network': {'id': '0f0a1553-27de-451d-8f2a-eb2a035a4f03', 'name': 'ctest-vn-60178779', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'project_id': '5bbffa4f99ca47e195263fed81928bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-vn-60178779'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:28:32,991 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab97e2a3-40ed-4f49-9f3a-2968c96247b9', 'name': '', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'network_id': '0f0a1553-27de-451d-8f2a-eb2a035a4f03', 'ip_version': 4, 'cidr': '14.217.60.0/26', 'allocation_pools': [{'start': '14.217.60.2', 'end': '14.217.60.62'}], 'gateway_ip': '14.217.60.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.217.60.2', 'tags': [], 'project_id': '5bbffa4f99ca47e195263fed81928bc4'}}
2025-07-17 02:28:33,012 - INFO - Created VN ctest-vn-60178779
2025-07-17 02:28:33,067 - DEBUG - VN ctest-vn-60178779 UUID is 0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:33,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611, 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-56103874:ctest-vn-60178779, 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-17 02:28:33,522 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63322d9-93c3-460c-aa60-86e2c104636c', 'name': 'ctest-vn-61808611', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'project_id': '5bbffa4f99ca47e195263fed81928bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a36825-5d97-45ba-8d34-bdf532b0c848'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-vn-61808611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-policy-allow-all-13472631']], 'subnet_ipam': [{'subnet_cidr': '141.46.125.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:28:33,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f0a1553-27de-451d-8f2a-eb2a035a4f03', 'name': 'ctest-vn-60178779', 'tenant_id': '5bbffa4f99ca47e195263fed81928bc4', 'project_id': '5bbffa4f99ca47e195263fed81928bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab97e2a3-40ed-4f49-9f3a-2968c96247b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-vn-60178779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-policy-allow-all-13472631']], 'subnet_ipam': [{'subnet_cidr': '14.217.60.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:28:33,946 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-17 02:28:34,287 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-17 02:28:34,318 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fcda0849-3f4d-43fd-87d6-3619b1739bfa
2025-07-17 02:28:34,334 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bbffa4f-99ca-47e1-9526-3fed81928bc4
2025-07-17 02:28:34,409 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,426 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,438 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/35927dc9-8053-42e3-888f-a7d05d75b93c
2025-07-17 02:28:34,446 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/35927dc9-8053-42e3-888f-a7d05d75b93c
2025-07-17 02:28:34,454 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fea9de67-38fd-4e8c-ae71-8f5dcc628c6e
2025-07-17 02:28:34,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:28:34,462 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,475 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/35927dc9-8053-42e3-888f-a7d05d75b93c
2025-07-17 02:28:34,491 - INFO - Verified VN network id 9 for VN a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,491 - INFO - Verifications in API Server for VN ctest-vn-61808611 passed
2025-07-17 02:28:34,491 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,503 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/35927dc9-8053-42e3-888f-a7d05d75b93c
2025-07-17 02:28:34,512 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/35927dc9-8053-42e3-888f-a7d05d75b93c
2025-07-17 02:28:34,520 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fea9de67-38fd-4e8c-ae71-8f5dcc628c6e
2025-07-17 02:28:34,534 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56103874', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11975954151990576652', 'uuid-lslong': '12276960892670993260'}, 'enable': 'true', 'created': '2025-07-17T02:28:32', 'last-modified': '2025-07-17T02:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051497'}
2025-07-17 02:28:34,541 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:28:34,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61808611 passed
2025-07-17 02:28:34,542 - DEBUG - ====Verifying policy data for ctest-vn-61808611 in API_Server ======
2025-07-17 02:28:34,542 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-17 02:28:34,548 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fcda0849-3f4d-43fd-87d6-3619b1739bfa
2025-07-17 02:28:34,561 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bbffa4f-99ca-47e1-9526-3fed81928bc4
2025-07-17 02:28:34,643 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a63322d9-93c3-460c-aa60-86e2c104636c
2025-07-17 02:28:34,655 - DEBUG - ==>Verifying data for policy with id: 5b9e93db-bcbf-4af4-9062-6c40d1314d0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-policy-allow-all-13472631']
2025-07-17 02:28:34,655 - INFO - VN ctest-vn-61808611 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:28:34,655 - DEBUG - Verifying the vn in opserver
2025-07-17 02:28:34,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611 virtual network link through opserver 10.0.0.242
2025-07-17 02:28:34,655 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-17 02:28:34,993 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-17 02:28:35,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611?flat'}
2025-07-17 02:28:35,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-61808611 is found in opserver
2025-07-17 02:28:35,074 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:28:35,080 - DEBUG - VRF ids for VN ctest-vn-61808611: {}
2025-07-17 02:28:35,080 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-17 02:28:35,088 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fcda0849-3f4d-43fd-87d6-3619b1739bfa
2025-07-17 02:28:35,103 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bbffa4f-99ca-47e1-9526-3fed81928bc4
2025-07-17 02:28:35,182 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,201 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,213 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5deeaeb0-50d2-4445-82b5-45b76e644dca
2025-07-17 02:28:35,223 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5deeaeb0-50d2-4445-82b5-45b76e644dca
2025-07-17 02:28:35,232 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ceb2b824-7c9d-4e36-970b-8e0c2466da3c
2025-07-17 02:28:35,241 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:28:35,241 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,254 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5deeaeb0-50d2-4445-82b5-45b76e644dca
2025-07-17 02:28:35,275 - INFO - Verified VN network id 10 for VN 0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,275 - INFO - Verifications in API Server for VN ctest-vn-60178779 passed
2025-07-17 02:28:35,275 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,288 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5deeaeb0-50d2-4445-82b5-45b76e644dca
2025-07-17 02:28:35,297 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5deeaeb0-50d2-4445-82b5-45b76e644dca
2025-07-17 02:28:35,307 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ceb2b824-7c9d-4e36-970b-8e0c2466da3c
2025-07-17 02:28:35,322 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-60178779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56103874', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1083702107231372573', 'uuid-lslong': '10316316462122946307'}, 'enable': 'true', 'created': '2025-07-17T02:28:32', 'last-modified': '2025-07-17T02:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.578709'}
2025-07-17 02:28:35,330 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:28:35,330 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60178779 passed
2025-07-17 02:28:35,330 - DEBUG - ====Verifying policy data for ctest-vn-60178779 in API_Server ======
2025-07-17 02:28:35,330 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-17 02:28:35,337 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fcda0849-3f4d-43fd-87d6-3619b1739bfa
2025-07-17 02:28:35,359 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bbffa4f-99ca-47e1-9526-3fed81928bc4
2025-07-17 02:28:35,435 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f0a1553-27de-451d-8f2a-eb2a035a4f03
2025-07-17 02:28:35,449 - DEBUG - ==>Verifying data for policy with id: 5b9e93db-bcbf-4af4-9062-6c40d1314d0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56103874', 'ctest-policy-allow-all-13472631']
2025-07-17 02:28:35,449 - INFO - VN ctest-vn-60178779 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:28:35,449 - DEBUG - Verifying the vn in opserver
2025-07-17 02:28:35,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-60178779 virtual network link through opserver 10.0.0.242
2025-07-17 02:28:35,450 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-17 02:28:35,464 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-60178779', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-60178779?flat'}
2025-07-17 02:28:35,464 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56103874:ctest-vn-60178779 is found in opserver
2025-07-17 02:28:35,479 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:28:35,487 - DEBUG - VRF ids for VN ctest-vn-60178779: {}
2025-07-17 02:28:35,555 - DEBUG - Services list from nova: [