2025-04-21 11:03:56,110 - INFO - Domain Default found not creating
2025-04-21 11:03:56,244 - INFO - Project ctest-TestBasicPolicy-04425545 not found, creating it
2025-04-21 11:03:56,702 - INFO - Created Project:ctest-TestBasicPolicy-04425545, ID : 10309158-a3af-4f47-8cca-93d51c59814d
2025-04-21 11:03:58,282 - INFO - ================================================================================
2025-04-21 11:03:58,283 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 11:03:58,283 - 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-04-21 11:03:58,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-04-21 11:03:58,537 - INFO - Initial checks done. Running the testcase now
2025-04-21 11:03:58,537 - INFO -
2025-04-21 11:03:59,139 - DEBUG - Response for create_network : {'network': {'id': '55adac38-7f0b-459a-924b-e000dc4a01c3', 'name': 'ctest-vn-60385015', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'project_id': '10309158a3af4f478cca93d51c59814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-vn-60385015'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 11:03:59,359 - DEBUG - Response for create_subnet : {'subnet': {'id': '6391c19a-360f-4225-8740-5f8ad554c2db', 'name': '', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'network_id': '55adac38-7f0b-459a-924b-e000dc4a01c3', 'ip_version': 4, 'cidr': '162.167.33.128/26', 'allocation_pools': [{'start': '162.167.33.130', 'end': '162.167.33.190'}], 'gateway_ip': '162.167.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.167.33.130', 'tags': [], 'project_id': '10309158a3af4f478cca93d51c59814d'}}
2025-04-21 11:03:59,380 - INFO - Created VN ctest-vn-60385015
2025-04-21 11:03:59,435 - DEBUG - VN ctest-vn-60385015 UUID is 55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:03:59,775 - DEBUG - Response for create_network : {'network': {'id': '727a8841-6f15-4978-a267-409f8056ab40', 'name': 'ctest-vn-54259103', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'project_id': '10309158a3af4f478cca93d51c59814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-vn-54259103'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 11:03:59,991 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f50188f-c4b5-4feb-86f5-2ff107292c76', 'name': '', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'network_id': '727a8841-6f15-4978-a267-409f8056ab40', 'ip_version': 4, 'cidr': '188.219.112.64/26', 'allocation_pools': [{'start': '188.219.112.66', 'end': '188.219.112.126'}], 'gateway_ip': '188.219.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.219.112.66', 'tags': [], 'project_id': '10309158a3af4f478cca93d51c59814d'}}
2025-04-21 11:04:00,009 - INFO - Created VN ctest-vn-54259103
2025-04-21 11:04:00,063 - DEBUG - VN ctest-vn-54259103 UUID is 727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:00,174 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015, 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-04425545:ctest-vn-54259103, 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-04-21 11:04:00,475 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55adac38-7f0b-459a-924b-e000dc4a01c3', 'name': 'ctest-vn-60385015', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'project_id': '10309158a3af4f478cca93d51c59814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6391c19a-360f-4225-8740-5f8ad554c2db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-vn-60385015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-policy-allow-all-17735907']], 'subnet_ipam': [{'subnet_cidr': '162.167.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 11:04:00,718 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '727a8841-6f15-4978-a267-409f8056ab40', 'name': 'ctest-vn-54259103', 'tenant_id': '10309158a3af4f478cca93d51c59814d', 'project_id': '10309158a3af4f478cca93d51c59814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f50188f-c4b5-4feb-86f5-2ff107292c76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-vn-54259103'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-policy-allow-all-17735907']], 'subnet_ipam': [{'subnet_cidr': '188.219.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 11:04:00,887 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-21 11:04:01,223 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-21 11:04:01,250 - DEBUG - Requesting: http://10.0.0.41:8082/domain/202a02a7-3d2b-4ac4-a3d1-28f6ed611c9e
2025-04-21 11:04:01,266 - DEBUG - Requesting: http://10.0.0.41:8082/project/10309158-a3af-4f47-8cca-93d51c59814d
2025-04-21 11:04:01,343 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,358 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,371 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0b41696e-94a2-4bea-8afd-985e242a3964
2025-04-21 11:04:01,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0b41696e-94a2-4bea-8afd-985e242a3964
2025-04-21 11:04:01,391 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6ba69acf-0415-4ddc-a4ca-a2d0f80862f7
2025-04-21 11:04:01,399 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 11:04:01,399 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,411 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0b41696e-94a2-4bea-8afd-985e242a3964
2025-04-21 11:04:01,428 - INFO - Verified VN network id 8 for VN 55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,428 - INFO - Verifications in API Server for VN ctest-vn-60385015 passed
2025-04-21 11:04:01,428 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,440 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0b41696e-94a2-4bea-8afd-985e242a3964
2025-04-21 11:04:01,450 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0b41696e-94a2-4bea-8afd-985e242a3964
2025-04-21 11:04:01,459 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6ba69acf-0415-4ddc-a4ca-a2d0f80862f7
2025-04-21 11:04:01,474 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04425545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6173780022844409242', 'uuid-lslong': '10541765647091237315'}, 'enable': 'true', 'created': '2025-04-21T11:03:59', 'last-modified': '2025-04-21T11:04:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032806'}
2025-04-21 11:04:01,482 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 11:04:01,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60385015 passed
2025-04-21 11:04:01,482 - DEBUG - ====Verifying policy data for ctest-vn-60385015 in API_Server ======
2025-04-21 11:04:01,482 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-21 11:04:01,488 - DEBUG - Requesting: http://10.0.0.41:8082/domain/202a02a7-3d2b-4ac4-a3d1-28f6ed611c9e
2025-04-21 11:04:01,500 - DEBUG - Requesting: http://10.0.0.41:8082/project/10309158-a3af-4f47-8cca-93d51c59814d
2025-04-21 11:04:01,574 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/55adac38-7f0b-459a-924b-e000dc4a01c3
2025-04-21 11:04:01,585 - DEBUG - ==>Verifying data for policy with id: a95c472c-82b6-48fa-8c1b-b9c5e647294a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-policy-allow-all-17735907']
2025-04-21 11:04:01,585 - INFO - VN ctest-vn-60385015 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 11:04:01,585 - DEBUG - Verifying the vn in opserver
2025-04-21 11:04:01,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015 virtual network link through opserver 10.0.0.41
2025-04-21 11:04:01,585 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-21 11:04:01,917 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-21 11:04:01,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015?flat'}
2025-04-21 11:04:01,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-60385015 is found in opserver
2025-04-21 11:04:01,988 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 11:04:01,994 - DEBUG - VRF ids for VN ctest-vn-60385015: {}
2025-04-21 11:04:01,994 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-21 11:04:02,002 - DEBUG - Requesting: http://10.0.0.41:8082/domain/202a02a7-3d2b-4ac4-a3d1-28f6ed611c9e
2025-04-21 11:04:02,018 - DEBUG - Requesting: http://10.0.0.41:8082/project/10309158-a3af-4f47-8cca-93d51c59814d
2025-04-21 11:04:02,096 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,108 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,119 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/16ec295b-eb3c-4c44-afeb-10a978d90cd8
2025-04-21 11:04:02,127 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/16ec295b-eb3c-4c44-afeb-10a978d90cd8
2025-04-21 11:04:02,135 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/89f5ab5a-0c7e-4e3c-b4ab-a0e16cf7720c
2025-04-21 11:04:02,142 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 11:04:02,142 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,152 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/16ec295b-eb3c-4c44-afeb-10a978d90cd8
2025-04-21 11:04:02,168 - INFO - Verified VN network id 9 for VN 727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,168 - INFO - Verifications in API Server for VN ctest-vn-54259103 passed
2025-04-21 11:04:02,168 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,178 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/16ec295b-eb3c-4c44-afeb-10a978d90cd8
2025-04-21 11:04:02,185 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/16ec295b-eb3c-4c44-afeb-10a978d90cd8
2025-04-21 11:04:02,193 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/89f5ab5a-0c7e-4e3c-b4ab-a0e16cf7720c
2025-04-21 11:04:02,206 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-54259103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04425545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8249055482100402552', 'uuid-lslong': '11702393210542664512'}, 'enable': 'true', 'created': '2025-04-21T11:03:59', 'last-modified': '2025-04-21T11:04:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.514503'}
2025-04-21 11:04:02,213 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 11:04:02,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54259103 passed
2025-04-21 11:04:02,213 - DEBUG - ====Verifying policy data for ctest-vn-54259103 in API_Server ======
2025-04-21 11:04:02,213 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-21 11:04:02,219 - DEBUG - Requesting: http://10.0.0.41:8082/domain/202a02a7-3d2b-4ac4-a3d1-28f6ed611c9e
2025-04-21 11:04:02,233 - DEBUG - Requesting: http://10.0.0.41:8082/project/10309158-a3af-4f47-8cca-93d51c59814d
2025-04-21 11:04:02,306 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/727a8841-6f15-4978-a267-409f8056ab40
2025-04-21 11:04:02,318 - DEBUG - ==>Verifying data for policy with id: a95c472c-82b6-48fa-8c1b-b9c5e647294a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04425545', 'ctest-policy-allow-all-17735907']
2025-04-21 11:04:02,318 - INFO - VN ctest-vn-54259103 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 11:04:02,318 - DEBUG - Verifying the vn in opserver
2025-04-21 11:04:02,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-54259103 virtual network link through opserver 10.0.0.41
2025-04-21 11:04:02,318 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-21 11:04:02,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-54259103', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-54259103?flat'}
2025-04-21 11:04:02,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04425545:ctest-vn-54259103 is found in opserver
2025-04-21 11:04:02,341 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 11:04:02,347 - DEBUG - VRF ids for VN ctest-vn-54259103: {}
2025-04-21 11:04:02,405 - DEBUG - Services list from nova: [