2026-08-15 18:56:26,986 - INFO - Domain Default found not creating
2026-08-15 18:56:27,177 - INFO - Project ctest-TestBasicPolicy-77246738 not found, creating it
2026-08-15 18:56:27,676 - INFO - Created Project:ctest-TestBasicPolicy-77246738, ID : b3bae270-92c1-4242-a381-3ee36eaed9a8
2026-08-15 18:56:29,455 - INFO - ================================================================================
2026-08-15 18:56:29,455 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-15 18:56:29,455 - 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
2026-08-15 18:56:29,736 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-08-15 18:56:29,736 - INFO - Initial checks done. Running the testcase now
2026-08-15 18:56:29,736 - INFO -
2026-08-15 18:56:30,411 - DEBUG - Response for create_network : {'network': {'id': 'a76848a3-4f2d-461c-b3e6-135bfa14d948', 'name': 'ctest-vn-06723269', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'project_id': 'b3bae27092c14242a3813ee36eaed9a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-vn-06723269'], 'port_security_enabled': True, 'description': ''}}
2026-08-15 18:56:30,602 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecbd8a00-ecf2-487b-b241-803b5b353d63', 'name': '', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'network_id': 'a76848a3-4f2d-461c-b3e6-135bfa14d948', 'ip_version': 4, 'cidr': '78.113.113.128/26', 'allocation_pools': [{'start': '78.113.113.130', 'end': '78.113.113.190'}], 'gateway_ip': '78.113.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.113.113.130', 'tags': [], 'project_id': 'b3bae27092c14242a3813ee36eaed9a8'}}
2026-08-15 18:56:30,625 - INFO - Created VN ctest-vn-06723269
2026-08-15 18:56:30,678 - DEBUG - VN ctest-vn-06723269 UUID is a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:30,997 - DEBUG - Response for create_network : {'network': {'id': '33160a0f-329e-4986-aa5b-c7aa78478ae7', 'name': 'ctest-vn-08349409', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'project_id': 'b3bae27092c14242a3813ee36eaed9a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-vn-08349409'], 'port_security_enabled': True, 'description': ''}}
2026-08-15 18:56:31,252 - DEBUG - Response for create_subnet : {'subnet': {'id': '21b0c53b-d84d-4929-8892-fc5135eb0504', 'name': '', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'network_id': '33160a0f-329e-4986-aa5b-c7aa78478ae7', 'ip_version': 4, 'cidr': '123.92.99.64/26', 'allocation_pools': [{'start': '123.92.99.66', 'end': '123.92.99.126'}], 'gateway_ip': '123.92.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.92.99.66', 'tags': [], 'project_id': 'b3bae27092c14242a3813ee36eaed9a8'}}
2026-08-15 18:56:31,275 - INFO - Created VN ctest-vn-08349409
2026-08-15 18:56:31,330 - DEBUG - VN ctest-vn-08349409 UUID is 33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:31,443 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269, 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-77246738:ctest-vn-08349409, 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]
2026-08-15 18:56:31,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a76848a3-4f2d-461c-b3e6-135bfa14d948', 'name': 'ctest-vn-06723269', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'project_id': 'b3bae27092c14242a3813ee36eaed9a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecbd8a00-ecf2-487b-b241-803b5b353d63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-vn-06723269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-policy-allow-all-39463516']], 'subnet_ipam': [{'subnet_cidr': '78.113.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-15 18:56:32,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33160a0f-329e-4986-aa5b-c7aa78478ae7', 'name': 'ctest-vn-08349409', 'tenant_id': 'b3bae27092c14242a3813ee36eaed9a8', 'project_id': 'b3bae27092c14242a3813ee36eaed9a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21b0c53b-d84d-4929-8892-fc5135eb0504'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-vn-08349409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-policy-allow-all-39463516']], 'subnet_ipam': [{'subnet_cidr': '123.92.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-15 18:56:32,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-15 18:56:32,590 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-15 18:56:32,622 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fa38431f-7b93-4bdd-9e30-dca925d43c77
2026-08-15 18:56:32,638 - DEBUG - Requesting: http://10.0.0.38:8082/project/b3bae270-92c1-4242-a381-3ee36eaed9a8
2026-08-15 18:56:32,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7157e18e-59b4-4b14-8502-3920ec1a4d55
2026-08-15 18:56:32,763 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7157e18e-59b4-4b14-8502-3920ec1a4d55
2026-08-15 18:56:32,772 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e7af11c-b15a-47a1-be9b-cea9c9c29a00
2026-08-15 18:56:32,783 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-15 18:56:32,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7157e18e-59b4-4b14-8502-3920ec1a4d55
2026-08-15 18:56:32,813 - INFO - Verified VN network id 11 for VN a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,813 - INFO - Verifications in API Server for VN ctest-vn-06723269 passed
2026-08-15 18:56:32,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,824 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7157e18e-59b4-4b14-8502-3920ec1a4d55
2026-08-15 18:56:32,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7157e18e-59b4-4b14-8502-3920ec1a4d55
2026-08-15 18:56:32,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e7af11c-b15a-47a1-be9b-cea9c9c29a00
2026-08-15 18:56:32,855 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77246738', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12062971468157109788', 'uuid-lslong': '12963069863191173448'}, 'enable': 'true', 'created': '2026-08-15T18:56:30', 'last-modified': '2026-08-15T18:56:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.097221'}
2026-08-15 18:56:32,863 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-15 18:56:32,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06723269 passed
2026-08-15 18:56:32,863 - DEBUG - ====Verifying policy data for ctest-vn-06723269 in API_Server ======
2026-08-15 18:56:32,863 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-15 18:56:32,870 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fa38431f-7b93-4bdd-9e30-dca925d43c77
2026-08-15 18:56:32,882 - DEBUG - Requesting: http://10.0.0.38:8082/project/b3bae270-92c1-4242-a381-3ee36eaed9a8
2026-08-15 18:56:32,958 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a76848a3-4f2d-461c-b3e6-135bfa14d948
2026-08-15 18:56:32,968 - DEBUG - ==>Verifying data for policy with id: e77a50be-34ee-4c12-960d-8e55dcccab0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-policy-allow-all-39463516']
2026-08-15 18:56:32,968 - INFO - VN ctest-vn-06723269 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-15 18:56:32,968 - DEBUG - Verifying the vn in opserver
2026-08-15 18:56:32,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269 virtual network link through opserver 10.0.0.38
2026-08-15 18:56:32,969 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-15 18:56:33,341 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-15 18:56:33,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269?flat'}
2026-08-15 18:56:33,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-06723269 is found in opserver
2026-08-15 18:56:33,416 - DEBUG - Do not have enough data to verify VN in agent
2026-08-15 18:56:33,423 - DEBUG - VRF ids for VN ctest-vn-06723269: {}
2026-08-15 18:56:33,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-15 18:56:33,430 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fa38431f-7b93-4bdd-9e30-dca925d43c77
2026-08-15 18:56:33,447 - DEBUG - Requesting: http://10.0.0.38:8082/project/b3bae270-92c1-4242-a381-3ee36eaed9a8
2026-08-15 18:56:33,531 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dccd0cbb-91ca-4f95-b6dd-6f135f05e7aa
2026-08-15 18:56:33,565 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dccd0cbb-91ca-4f95-b6dd-6f135f05e7aa
2026-08-15 18:56:33,572 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f71182ac-da5b-476a-aaef-f2c8ca1c5a14
2026-08-15 18:56:33,579 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-15 18:56:33,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dccd0cbb-91ca-4f95-b6dd-6f135f05e7aa
2026-08-15 18:56:33,606 - INFO - Verified VN network id 12 for VN 33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,606 - INFO - Verifications in API Server for VN ctest-vn-08349409 passed
2026-08-15 18:56:33,606 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,616 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dccd0cbb-91ca-4f95-b6dd-6f135f05e7aa
2026-08-15 18:56:33,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dccd0cbb-91ca-4f95-b6dd-6f135f05e7aa
2026-08-15 18:56:33,636 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f71182ac-da5b-476a-aaef-f2c8ca1c5a14
2026-08-15 18:56:33,650 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-08349409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77246738', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3681140805811980678', 'uuid-lslong': '12275624744304741095'}, 'enable': 'true', 'created': '2026-08-15T18:56:30', 'last-modified': '2026-08-15T18:56:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.639818'}
2026-08-15 18:56:33,659 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-15 18:56:33,659 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08349409 passed
2026-08-15 18:56:33,659 - DEBUG - ====Verifying policy data for ctest-vn-08349409 in API_Server ======
2026-08-15 18:56:33,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-15 18:56:33,666 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fa38431f-7b93-4bdd-9e30-dca925d43c77
2026-08-15 18:56:33,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/b3bae270-92c1-4242-a381-3ee36eaed9a8
2026-08-15 18:56:33,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/33160a0f-329e-4986-aa5b-c7aa78478ae7
2026-08-15 18:56:33,772 - DEBUG - ==>Verifying data for policy with id: e77a50be-34ee-4c12-960d-8e55dcccab0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-77246738', 'ctest-policy-allow-all-39463516']
2026-08-15 18:56:33,772 - INFO - VN ctest-vn-08349409 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-15 18:56:33,772 - DEBUG - Verifying the vn in opserver
2026-08-15 18:56:33,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-08349409 virtual network link through opserver 10.0.0.38
2026-08-15 18:56:33,772 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-15 18:56:33,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-08349409', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-08349409?flat'}
2026-08-15 18:56:33,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77246738:ctest-vn-08349409 is found in opserver
2026-08-15 18:56:33,796 - DEBUG - Do not have enough data to verify VN in agent
2026-08-15 18:56:33,801 - DEBUG - VRF ids for VN ctest-vn-08349409: {}
2026-08-15 18:56:33,865 - DEBUG - Services list from nova: [