2025-08-18 19:23:30,172 - INFO - Domain Default found not creating
2025-08-18 19:23:30,290 - INFO - Project ctest-TestBasicPolicy-10027119 not found, creating it
2025-08-18 19:23:30,723 - INFO - Created Project:ctest-TestBasicPolicy-10027119, ID : 53ceb2ac-ea19-43b2-b4c9-395becc356ca
2025-08-18 19:23:32,043 - INFO - ================================================================================
2025-08-18 19:23:32,043 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 19:23:32,043 - 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-08-18 19:23:32,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-18 19:23:32,295 - INFO - Initial checks done. Running the testcase now
2025-08-18 19:23:32,295 - INFO -
2025-08-18 19:23:32,809 - DEBUG - Response for create_network : {'network': {'id': 'd31441e3-cee7-4a24-82b3-f7e0019133df', 'name': 'ctest-vn-32158521', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'project_id': '53ceb2acea1943b2b4c9395becc356ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-vn-32158521'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:23:33,022 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b27e61a6-ad5f-4bae-8de1-b5c1e4484c73', 'name': '', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'network_id': 'd31441e3-cee7-4a24-82b3-f7e0019133df', 'ip_version': 4, 'cidr': '87.99.181.192/26', 'allocation_pools': [{'start': '87.99.181.194', 'end': '87.99.181.254'}], 'gateway_ip': '87.99.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.99.181.194', 'tags': [], 'project_id': '53ceb2acea1943b2b4c9395becc356ca'}}
2025-08-18 19:23:33,038 - INFO - Created VN ctest-vn-32158521
2025-08-18 19:23:33,095 - DEBUG - VN ctest-vn-32158521 UUID is d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:33,416 - DEBUG - Response for create_network : {'network': {'id': '852936d2-4fab-48d8-a846-cea78273fe52', 'name': 'ctest-vn-16454005', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'project_id': '53ceb2acea1943b2b4c9395becc356ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-vn-16454005'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:23:33,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '2833e85f-ce6c-420b-8169-7fb483487978', 'name': '', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'network_id': '852936d2-4fab-48d8-a846-cea78273fe52', 'ip_version': 4, 'cidr': '50.110.86.128/26', 'allocation_pools': [{'start': '50.110.86.130', 'end': '50.110.86.190'}], 'gateway_ip': '50.110.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.110.86.130', 'tags': [], 'project_id': '53ceb2acea1943b2b4c9395becc356ca'}}
2025-08-18 19:23:33,640 - INFO - Created VN ctest-vn-16454005
2025-08-18 19:23:33,695 - DEBUG - VN ctest-vn-16454005 UUID is 852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:33,843 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521, 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-10027119:ctest-vn-16454005, 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-08-18 19:23:34,134 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd31441e3-cee7-4a24-82b3-f7e0019133df', 'name': 'ctest-vn-32158521', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'project_id': '53ceb2acea1943b2b4c9395becc356ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b27e61a6-ad5f-4bae-8de1-b5c1e4484c73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-vn-32158521'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-policy-allow-all-08425164']], 'subnet_ipam': [{'subnet_cidr': '87.99.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:23:34,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '852936d2-4fab-48d8-a846-cea78273fe52', 'name': 'ctest-vn-16454005', 'tenant_id': '53ceb2acea1943b2b4c9395becc356ca', 'project_id': '53ceb2acea1943b2b4c9395becc356ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2833e85f-ce6c-420b-8169-7fb483487978'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-vn-16454005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-policy-allow-all-08425164']], 'subnet_ipam': [{'subnet_cidr': '50.110.86.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:23:34,495 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 19:23:34,788 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 19:23:34,813 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689
2025-08-18 19:23:34,824 - DEBUG - Requesting: http://10.0.0.254:8082/project/53ceb2ac-ea19-43b2-b4c9-395becc356ca
2025-08-18 19:23:34,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:34,900 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:34,909 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aacf5d10-fdbd-4c0e-8c2e-bc6308adec33
2025-08-18 19:23:34,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aacf5d10-fdbd-4c0e-8c2e-bc6308adec33
2025-08-18 19:23:34,922 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dffc3d05-fa29-4180-84be-e70a3a96d331
2025-08-18 19:23:34,928 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 19:23:34,928 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:34,935 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aacf5d10-fdbd-4c0e-8c2e-bc6308adec33
2025-08-18 19:23:34,947 - INFO - Verified VN network id 12 for VN d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:34,947 - INFO - Verifications in API Server for VN ctest-vn-32158521 passed
2025-08-18 19:23:34,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:34,955 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aacf5d10-fdbd-4c0e-8c2e-bc6308adec33
2025-08-18 19:23:34,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aacf5d10-fdbd-4c0e-8c2e-bc6308adec33
2025-08-18 19:23:34,966 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dffc3d05-fa29-4180-84be-e70a3a96d331
2025-08-18 19:23:34,975 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10027119', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15209854288221653540', 'uuid-lslong': '9418143787232867295'}, 'enable': 'true', 'created': '2025-08-18T19:23:32', 'last-modified': '2025-08-18T19:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859500'}
2025-08-18 19:23:34,981 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 19:23:34,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32158521 passed
2025-08-18 19:23:34,981 - DEBUG - ====Verifying policy data for ctest-vn-32158521 in API_Server ======
2025-08-18 19:23:34,981 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 19:23:34,985 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689
2025-08-18 19:23:34,995 - DEBUG - Requesting: http://10.0.0.254:8082/project/53ceb2ac-ea19-43b2-b4c9-395becc356ca
2025-08-18 19:23:35,066 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d31441e3-cee7-4a24-82b3-f7e0019133df
2025-08-18 19:23:35,074 - DEBUG - ==>Verifying data for policy with id: 28bf73d7-b6a5-41af-b3f1-920a1249c3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-policy-allow-all-08425164']
2025-08-18 19:23:35,074 - INFO - VN ctest-vn-32158521 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 19:23:35,074 - DEBUG - Verifying the vn in opserver
2025-08-18 19:23:35,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521 virtual network link through opserver 10.0.0.254
2025-08-18 19:23:35,074 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 19:23:35,361 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 19:23:35,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521?flat'}
2025-08-18 19:23:35,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-32158521 is found in opserver
2025-08-18 19:23:35,418 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 19:23:35,422 - DEBUG - VRF ids for VN ctest-vn-32158521: {}
2025-08-18 19:23:35,422 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 19:23:35,427 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689
2025-08-18 19:23:35,437 - DEBUG - Requesting: http://10.0.0.254:8082/project/53ceb2ac-ea19-43b2-b4c9-395becc356ca
2025-08-18 19:23:35,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,514 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,521 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7a6b898-d724-4ca0-b83f-dffef4251cfe
2025-08-18 19:23:35,527 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7a6b898-d724-4ca0-b83f-dffef4251cfe
2025-08-18 19:23:35,532 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4749c6b-fb8d-4b79-8d91-9db4550c4d09
2025-08-18 19:23:35,537 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 19:23:35,537 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,544 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7a6b898-d724-4ca0-b83f-dffef4251cfe
2025-08-18 19:23:35,554 - INFO - Verified VN network id 13 for VN 852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,554 - INFO - Verifications in API Server for VN ctest-vn-16454005 passed
2025-08-18 19:23:35,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7a6b898-d724-4ca0-b83f-dffef4251cfe
2025-08-18 19:23:35,566 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a7a6b898-d724-4ca0-b83f-dffef4251cfe
2025-08-18 19:23:35,571 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4749c6b-fb8d-4b79-8d91-9db4550c4d09
2025-08-18 19:23:35,580 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-16454005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10027119', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9595260757997209816', 'uuid-lslong': '12125606265585139282'}, 'enable': 'true', 'created': '2025-08-18T19:23:33', 'last-modified': '2025-08-18T19:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.248726'}
2025-08-18 19:23:35,586 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 19:23:35,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16454005 passed
2025-08-18 19:23:35,586 - DEBUG - ====Verifying policy data for ctest-vn-16454005 in API_Server ======
2025-08-18 19:23:35,586 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 19:23:35,590 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689
2025-08-18 19:23:35,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/53ceb2ac-ea19-43b2-b4c9-395becc356ca
2025-08-18 19:23:35,674 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/852936d2-4fab-48d8-a846-cea78273fe52
2025-08-18 19:23:35,681 - DEBUG - ==>Verifying data for policy with id: 28bf73d7-b6a5-41af-b3f1-920a1249c3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10027119', 'ctest-policy-allow-all-08425164']
2025-08-18 19:23:35,681 - INFO - VN ctest-vn-16454005 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 19:23:35,682 - DEBUG - Verifying the vn in opserver
2025-08-18 19:23:35,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-16454005 virtual network link through opserver 10.0.0.254
2025-08-18 19:23:35,682 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 19:23:35,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-16454005', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-16454005?flat'}
2025-08-18 19:23:35,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10027119:ctest-vn-16454005 is found in opserver
2025-08-18 19:23:35,699 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 19:23:35,703 - DEBUG - VRF ids for VN ctest-vn-16454005: {}
2025-08-18 19:23:35,753 - DEBUG - Services list from nova: [