2025-08-25 14:16:28,835 - INFO - Domain Default found not creating
2025-08-25 14:16:28,958 - INFO - Project ctest-TestBasicPolicy-52503936 not found, creating it
2025-08-25 14:16:29,390 - INFO - Created Project:ctest-TestBasicPolicy-52503936, ID : 132abaf1-9857-4e8b-9136-d1337175eab9
2025-08-25 14:16:30,848 - INFO - ================================================================================
2025-08-25 14:16:30,848 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 14:16:30,849 - 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-25 14:16:31,107 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-25 14:16:31,107 - INFO - Initial checks done. Running the testcase now
2025-08-25 14:16:31,107 - INFO -
2025-08-25 14:16:31,650 - DEBUG - Response for create_network : {'network': {'id': '03e5dea9-2267-421e-b131-a3d06cafd15f', 'name': 'ctest-vn-14417558', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'project_id': '132abaf198574e8b9136d1337175eab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-vn-14417558'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:16:31,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '48637457-98ca-4f3e-af5e-be69bbcdde73', 'name': '', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'network_id': '03e5dea9-2267-421e-b131-a3d06cafd15f', 'ip_version': 4, 'cidr': '19.1.226.192/26', 'allocation_pools': [{'start': '19.1.226.194', 'end': '19.1.226.254'}], 'gateway_ip': '19.1.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.1.226.194', 'tags': [], 'project_id': '132abaf198574e8b9136d1337175eab9'}}
2025-08-25 14:16:31,856 - INFO - Created VN ctest-vn-14417558
2025-08-25 14:16:31,905 - DEBUG - VN ctest-vn-14417558 UUID is 03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:32,244 - DEBUG - Response for create_network : {'network': {'id': 'ef6b17b3-a5c8-490b-99ea-bc986f12de80', 'name': 'ctest-vn-08539422', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'project_id': '132abaf198574e8b9136d1337175eab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-vn-08539422'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:16:32,461 - DEBUG - Response for create_subnet : {'subnet': {'id': 'def2e939-0601-45f8-97ad-da599e7c31b9', 'name': '', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'network_id': 'ef6b17b3-a5c8-490b-99ea-bc986f12de80', 'ip_version': 4, 'cidr': '215.36.72.128/26', 'allocation_pools': [{'start': '215.36.72.130', 'end': '215.36.72.190'}], 'gateway_ip': '215.36.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.36.72.130', 'tags': [], 'project_id': '132abaf198574e8b9136d1337175eab9'}}
2025-08-25 14:16:32,479 - INFO - Created VN ctest-vn-08539422
2025-08-25 14:16:32,529 - DEBUG - VN ctest-vn-08539422 UUID is ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:32,677 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558, 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-52503936:ctest-vn-08539422, 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-25 14:16:32,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03e5dea9-2267-421e-b131-a3d06cafd15f', 'name': 'ctest-vn-14417558', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'project_id': '132abaf198574e8b9136d1337175eab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48637457-98ca-4f3e-af5e-be69bbcdde73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-vn-14417558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-policy-allow-all-88981884']], 'subnet_ipam': [{'subnet_cidr': '19.1.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:16:33,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef6b17b3-a5c8-490b-99ea-bc986f12de80', 'name': 'ctest-vn-08539422', 'tenant_id': '132abaf198574e8b9136d1337175eab9', 'project_id': '132abaf198574e8b9136d1337175eab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['def2e939-0601-45f8-97ad-da599e7c31b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-vn-08539422'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-policy-allow-all-88981884']], 'subnet_ipam': [{'subnet_cidr': '215.36.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:16:33,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-25 14:16:33,741 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-25 14:16:33,768 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9
2025-08-25 14:16:33,780 - DEBUG - Requesting: http://10.0.0.38:8082/project/132abaf1-9857-4e8b-9136-d1337175eab9
2025-08-25 14:16:33,852 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:33,863 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:33,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31fbcbdb-b3f4-4102-9f09-882cbfaa2c36
2025-08-25 14:16:33,880 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31fbcbdb-b3f4-4102-9f09-882cbfaa2c36
2025-08-25 14:16:33,886 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fc7042e-9749-4fbe-836b-41f84f552ad7
2025-08-25 14:16:33,892 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 14:16:33,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:33,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31fbcbdb-b3f4-4102-9f09-882cbfaa2c36
2025-08-25 14:16:33,914 - INFO - Verified VN network id 12 for VN 03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:33,914 - INFO - Verifications in API Server for VN ctest-vn-14417558 passed
2025-08-25 14:16:33,914 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:33,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31fbcbdb-b3f4-4102-9f09-882cbfaa2c36
2025-08-25 14:16:33,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31fbcbdb-b3f4-4102-9f09-882cbfaa2c36
2025-08-25 14:16:33,936 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fc7042e-9749-4fbe-836b-41f84f552ad7
2025-08-25 14:16:33,948 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52503936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '280875369788555806', 'uuid-lslong': '12768166534144053599'}, 'enable': 'true', 'created': '2025-08-25T14:16:31', 'last-modified': '2025-08-25T14:16:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999606'}
2025-08-25 14:16:33,955 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 14:16:33,955 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14417558 passed
2025-08-25 14:16:33,956 - DEBUG - ====Verifying policy data for ctest-vn-14417558 in API_Server ======
2025-08-25 14:16:33,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-25 14:16:33,960 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9
2025-08-25 14:16:33,971 - DEBUG - Requesting: http://10.0.0.38:8082/project/132abaf1-9857-4e8b-9136-d1337175eab9
2025-08-25 14:16:34,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03e5dea9-2267-421e-b131-a3d06cafd15f
2025-08-25 14:16:34,056 - DEBUG - ==>Verifying data for policy with id: 98851c6d-3fac-424f-b6bd-5fabb41d73de, fqn: ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-policy-allow-all-88981884']
2025-08-25 14:16:34,057 - INFO - VN ctest-vn-14417558 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 14:16:34,057 - DEBUG - Verifying the vn in opserver
2025-08-25 14:16:34,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558 virtual network link through opserver 10.0.0.38
2025-08-25 14:16:34,057 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-25 14:16:34,349 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-25 14:16:34,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558?flat'}
2025-08-25 14:16:34,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-14417558 is found in opserver
2025-08-25 14:16:34,420 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 14:16:34,427 - DEBUG - VRF ids for VN ctest-vn-14417558: {}
2025-08-25 14:16:34,427 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-25 14:16:34,433 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9
2025-08-25 14:16:34,448 - DEBUG - Requesting: http://10.0.0.38:8082/project/132abaf1-9857-4e8b-9136-d1337175eab9
2025-08-25 14:16:34,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,535 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5967e37-fc82-4743-9c95-429a826f6447
2025-08-25 14:16:34,550 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5967e37-fc82-4743-9c95-429a826f6447
2025-08-25 14:16:34,557 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db6a4c85-089e-4c49-a87d-feccce0a85a5
2025-08-25 14:16:34,564 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 14:16:34,564 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5967e37-fc82-4743-9c95-429a826f6447
2025-08-25 14:16:34,590 - INFO - Verified VN network id 13 for VN ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,590 - INFO - Verifications in API Server for VN ctest-vn-08539422 passed
2025-08-25 14:16:34,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,602 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5967e37-fc82-4743-9c95-429a826f6447
2025-08-25 14:16:34,612 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5967e37-fc82-4743-9c95-429a826f6447
2025-08-25 14:16:34,620 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db6a4c85-089e-4c49-a87d-feccce0a85a5
2025-08-25 14:16:34,633 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-08539422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52503936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17251908857920768267', 'uuid-lslong': '11090884395237826176'}, 'enable': 'true', 'created': '2025-08-25T14:16:32', 'last-modified': '2025-08-25T14:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433536'}
2025-08-25 14:16:34,640 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 14:16:34,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08539422 passed
2025-08-25 14:16:34,640 - DEBUG - ====Verifying policy data for ctest-vn-08539422 in API_Server ======
2025-08-25 14:16:34,640 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-25 14:16:34,646 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9
2025-08-25 14:16:34,657 - DEBUG - Requesting: http://10.0.0.38:8082/project/132abaf1-9857-4e8b-9136-d1337175eab9
2025-08-25 14:16:34,741 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef6b17b3-a5c8-490b-99ea-bc986f12de80
2025-08-25 14:16:34,751 - DEBUG - ==>Verifying data for policy with id: 98851c6d-3fac-424f-b6bd-5fabb41d73de, fqn: ['default-domain', 'ctest-TestBasicPolicy-52503936', 'ctest-policy-allow-all-88981884']
2025-08-25 14:16:34,751 - INFO - VN ctest-vn-08539422 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 14:16:34,751 - DEBUG - Verifying the vn in opserver
2025-08-25 14:16:34,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-08539422 virtual network link through opserver 10.0.0.38
2025-08-25 14:16:34,751 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-25 14:16:34,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-08539422', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-08539422?flat'}
2025-08-25 14:16:34,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52503936:ctest-vn-08539422 is found in opserver
2025-08-25 14:16:34,771 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 14:16:34,776 - DEBUG - VRF ids for VN ctest-vn-08539422: {}
2025-08-25 14:16:34,827 - DEBUG - Services list from nova: [