2025-07-08 18:05:14,544 - INFO - Domain Default found not creating
2025-07-08 18:05:14,701 - INFO - Project ctest-TestBasicPolicy-24007434 not found, creating it
2025-07-08 18:05:15,176 - INFO - Created Project:ctest-TestBasicPolicy-24007434, ID : 6d74d2e3-48b6-4c9a-8a4a-256be6e979db
2025-07-08 18:05:16,598 - INFO - ================================================================================
2025-07-08 18:05:16,599 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-08 18:05:16,599 - 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-08 18:05:16,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-07-08 18:05:16,855 - INFO - Initial checks done. Running the testcase now
2025-07-08 18:05:16,855 - INFO -
2025-07-08 18:05:17,405 - DEBUG - Response for create_network : {'network': {'id': '7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77', 'name': 'ctest-vn-41614124', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'project_id': '6d74d2e348b64c9a8a4a256be6e979db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-vn-41614124'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 18:05:17,570 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dffd717-d4b6-45c8-826b-896198d296cc', 'name': '', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'network_id': '7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77', 'ip_version': 4, 'cidr': '153.200.195.64/26', 'allocation_pools': [{'start': '153.200.195.66', 'end': '153.200.195.126'}], 'gateway_ip': '153.200.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.200.195.66', 'tags': [], 'project_id': '6d74d2e348b64c9a8a4a256be6e979db'}}
2025-07-08 18:05:17,589 - INFO - Created VN ctest-vn-41614124
2025-07-08 18:05:17,641 - DEBUG - VN ctest-vn-41614124 UUID is 7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:17,973 - DEBUG - Response for create_network : {'network': {'id': '93dcbe86-3861-4eb3-a2b7-b48315513b98', 'name': 'ctest-vn-00499700', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'project_id': '6d74d2e348b64c9a8a4a256be6e979db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-vn-00499700'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 18:05:18,183 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cac162b0-b8cc-4fe4-98bc-feee94f9f59a', 'name': '', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'network_id': '93dcbe86-3861-4eb3-a2b7-b48315513b98', 'ip_version': 4, 'cidr': '37.119.128.128/26', 'allocation_pools': [{'start': '37.119.128.130', 'end': '37.119.128.190'}], 'gateway_ip': '37.119.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.119.128.130', 'tags': [], 'project_id': '6d74d2e348b64c9a8a4a256be6e979db'}}
2025-07-08 18:05:18,203 - INFO - Created VN ctest-vn-00499700
2025-07-08 18:05:18,257 - DEBUG - VN ctest-vn-00499700 UUID is 93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:18,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124, 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-24007434:ctest-vn-00499700, 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-08 18:05:18,660 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77', 'name': 'ctest-vn-41614124', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'project_id': '6d74d2e348b64c9a8a4a256be6e979db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dffd717-d4b6-45c8-826b-896198d296cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-vn-41614124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-policy-allow-all-56522793']], 'subnet_ipam': [{'subnet_cidr': '153.200.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 18:05:18,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93dcbe86-3861-4eb3-a2b7-b48315513b98', 'name': 'ctest-vn-00499700', 'tenant_id': '6d74d2e348b64c9a8a4a256be6e979db', 'project_id': '6d74d2e348b64c9a8a4a256be6e979db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cac162b0-b8cc-4fe4-98bc-feee94f9f59a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-vn-00499700'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-policy-allow-all-56522793']], 'subnet_ipam': [{'subnet_cidr': '37.119.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 18:05:19,065 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 18:05:19,361 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 18:05:19,388 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c133c3b0-3074-4f4e-90f9-ec0a93a6f061
2025-07-08 18:05:19,401 - DEBUG - Requesting: http://10.0.0.49:8082/project/6d74d2e3-48b6-4c9a-8a4a-256be6e979db
2025-07-08 18:05:19,478 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,490 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,500 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1c0a9ccc-7aee-47c2-938d-5fe7730a72f3
2025-07-08 18:05:19,508 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1c0a9ccc-7aee-47c2-938d-5fe7730a72f3
2025-07-08 18:05:19,516 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ec2c4e6b-b3e7-4288-8ec1-b36cc053067f
2025-07-08 18:05:19,523 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 18:05:19,523 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,533 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1c0a9ccc-7aee-47c2-938d-5fe7730a72f3
2025-07-08 18:05:19,549 - INFO - Verified VN network id 8 for VN 7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,549 - INFO - Verifications in API Server for VN ctest-vn-41614124 passed
2025-07-08 18:05:19,549 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,559 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1c0a9ccc-7aee-47c2-938d-5fe7730a72f3
2025-07-08 18:05:19,567 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1c0a9ccc-7aee-47c2-938d-5fe7730a72f3
2025-07-08 18:05:19,575 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ec2c4e6b-b3e7-4288-8ec1-b36cc053067f
2025-07-08 18:05:19,588 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24007434', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8960003724312857173', 'uuid-lslong': '11470057650939288695'}, 'enable': 'true', 'created': '2025-07-08T18:05:17', 'last-modified': '2025-07-08T18:05:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954074'}
2025-07-08 18:05:19,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 18:05:19,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41614124 passed
2025-07-08 18:05:19,595 - DEBUG - ====Verifying policy data for ctest-vn-41614124 in API_Server ======
2025-07-08 18:05:19,595 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 18:05:19,600 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c133c3b0-3074-4f4e-90f9-ec0a93a6f061
2025-07-08 18:05:19,611 - DEBUG - Requesting: http://10.0.0.49:8082/project/6d74d2e3-48b6-4c9a-8a4a-256be6e979db
2025-07-08 18:05:19,682 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c5853ea-45d8-4a55-9f2d-d4a99d7cdc77
2025-07-08 18:05:19,691 - DEBUG - ==>Verifying data for policy with id: 45e008b1-da43-4758-b679-fbca271974f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-policy-allow-all-56522793']
2025-07-08 18:05:19,691 - INFO - VN ctest-vn-41614124 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 18:05:19,692 - DEBUG - Verifying the vn in opserver
2025-07-08 18:05:19,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124 virtual network link through opserver 10.0.0.49
2025-07-08 18:05:19,692 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 18:05:19,981 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 18:05:20,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124?flat'}
2025-07-08 18:05:20,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-41614124 is found in opserver
2025-07-08 18:05:20,051 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 18:05:20,056 - DEBUG - VRF ids for VN ctest-vn-41614124: {}
2025-07-08 18:05:20,056 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 18:05:20,062 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c133c3b0-3074-4f4e-90f9-ec0a93a6f061
2025-07-08 18:05:20,073 - DEBUG - Requesting: http://10.0.0.49:8082/project/6d74d2e3-48b6-4c9a-8a4a-256be6e979db
2025-07-08 18:05:20,142 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,154 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,163 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7c197bb1-9e6a-48b4-a567-687f768f88e8
2025-07-08 18:05:20,171 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7c197bb1-9e6a-48b4-a567-687f768f88e8
2025-07-08 18:05:20,178 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c87a135b-566b-45e7-8e79-6bc5a69f64f1
2025-07-08 18:05:20,185 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 18:05:20,185 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,196 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7c197bb1-9e6a-48b4-a567-687f768f88e8
2025-07-08 18:05:20,211 - INFO - Verified VN network id 9 for VN 93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,211 - INFO - Verifications in API Server for VN ctest-vn-00499700 passed
2025-07-08 18:05:20,211 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,221 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7c197bb1-9e6a-48b4-a567-687f768f88e8
2025-07-08 18:05:20,228 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7c197bb1-9e6a-48b4-a567-687f768f88e8
2025-07-08 18:05:20,236 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c87a135b-566b-45e7-8e79-6bc5a69f64f1
2025-07-08 18:05:20,248 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-00499700', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24007434', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10654600302132547251', 'uuid-lslong': '11725038629973736344'}, 'enable': 'true', 'created': '2025-07-08T18:05:17', 'last-modified': '2025-07-08T18:05:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383584'}
2025-07-08 18:05:20,254 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 18:05:20,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00499700 passed
2025-07-08 18:05:20,254 - DEBUG - ====Verifying policy data for ctest-vn-00499700 in API_Server ======
2025-07-08 18:05:20,254 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-08 18:05:20,260 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c133c3b0-3074-4f4e-90f9-ec0a93a6f061
2025-07-08 18:05:20,272 - DEBUG - Requesting: http://10.0.0.49:8082/project/6d74d2e3-48b6-4c9a-8a4a-256be6e979db
2025-07-08 18:05:20,344 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/93dcbe86-3861-4eb3-a2b7-b48315513b98
2025-07-08 18:05:20,355 - DEBUG - ==>Verifying data for policy with id: 45e008b1-da43-4758-b679-fbca271974f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24007434', 'ctest-policy-allow-all-56522793']
2025-07-08 18:05:20,355 - INFO - VN ctest-vn-00499700 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 18:05:20,355 - DEBUG - Verifying the vn in opserver
2025-07-08 18:05:20,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-00499700 virtual network link through opserver 10.0.0.49
2025-07-08 18:05:20,355 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-08 18:05:20,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-00499700', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-00499700?flat'}
2025-07-08 18:05:20,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24007434:ctest-vn-00499700 is found in opserver
2025-07-08 18:05:20,377 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 18:05:20,382 - DEBUG - VRF ids for VN ctest-vn-00499700: {}
2025-07-08 18:05:20,434 - DEBUG - Services list from nova: [