2025-06-09 15:05:05,434 - INFO - Domain Default found not creating
2025-06-09 15:05:05,585 - INFO - Project ctest-TestBasicPolicy-00855122 not found, creating it
2025-06-09 15:05:06,047 - INFO - Created Project:ctest-TestBasicPolicy-00855122, ID : 0f31491f-d9ce-483c-97e4-4294f6f63250
2025-06-09 15:05:07,512 - INFO - ================================================================================
2025-06-09 15:05:07,512 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 15:05:07,512 - 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-06-09 15:05:07,769 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-06-09 15:05:07,770 - INFO - Initial checks done. Running the testcase now
2025-06-09 15:05:07,770 - INFO -
2025-06-09 15:05:08,337 - DEBUG - Response for create_network : {'network': {'id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'name': 'ctest-vn-04611356', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-04611356'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:05:08,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '89d34ce1-c7b0-4294-8204-81adfb706960', 'name': '', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'network_id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'ip_version': 4, 'cidr': '177.138.230.0/26', 'allocation_pools': [{'start': '177.138.230.2', 'end': '177.138.230.62'}], 'gateway_ip': '177.138.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.138.230.2', 'tags': [], 'project_id': '0f31491fd9ce483c97e44294f6f63250'}}
2025-06-09 15:05:08,534 - INFO - Created VN ctest-vn-04611356
2025-06-09 15:05:08,587 - DEBUG - VN ctest-vn-04611356 UUID is 179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:08,888 - DEBUG - Response for create_network : {'network': {'id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'name': 'ctest-vn-05679803', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-05679803'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:05:09,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf6bc013-94eb-4f34-8c0f-014c3a722b40', 'name': '', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'network_id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'ip_version': 4, 'cidr': '180.79.54.64/26', 'allocation_pools': [{'start': '180.79.54.66', 'end': '180.79.54.126'}], 'gateway_ip': '180.79.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.79.54.66', 'tags': [], 'project_id': '0f31491fd9ce483c97e44294f6f63250'}}
2025-06-09 15:05:09,076 - INFO - Created VN ctest-vn-05679803
2025-06-09 15:05:09,135 - DEBUG - VN ctest-vn-05679803 UUID is a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:09,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356, 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-00855122:ctest-vn-05679803, 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-06-09 15:05:09,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'name': 'ctest-vn-04611356', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89d34ce1-c7b0-4294-8204-81adfb706960'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-04611356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']], 'subnet_ipam': [{'subnet_cidr': '177.138.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:05:09,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'name': 'ctest-vn-05679803', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf6bc013-94eb-4f34-8c0f-014c3a722b40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-05679803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']], 'subnet_ipam': [{'subnet_cidr': '180.79.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:05:10,035 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 15:05:10,332 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 15:05:10,358 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36
2025-06-09 15:05:10,369 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250
2025-06-09 15:05:10,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,448 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714
2025-06-09 15:05:10,464 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714
2025-06-09 15:05:10,471 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c87c91a-bb43-4288-b6b5-a2906aeee26b
2025-06-09 15:05:10,478 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 15:05:10,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714
2025-06-09 15:05:10,504 - INFO - Verified VN network id 7 for VN 179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,504 - INFO - Verifications in API Server for VN ctest-vn-04611356 passed
2025-06-09 15:05:10,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714
2025-06-09 15:05:10,522 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714
2025-06-09 15:05:10,532 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c87c91a-bb43-4288-b6b5-a2906aeee26b
2025-06-09 15:05:10,550 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00855122', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1700714438604702855', 'uuid-lslong': '10501168220307255375'}, 'enable': 'true', 'created': '2025-06-09T15:05:08', 'last-modified': '2025-06-09T15:05:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964817'}
2025-06-09 15:05:10,557 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 15:05:10,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04611356 passed
2025-06-09 15:05:10,558 - DEBUG - ====Verifying policy data for ctest-vn-04611356 in API_Server ======
2025-06-09 15:05:10,558 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 15:05:10,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36
2025-06-09 15:05:10,584 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250
2025-06-09 15:05:10,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f
2025-06-09 15:05:10,675 - DEBUG - ==>Verifying data for policy with id: ab4d678d-05ca-433f-a41a-f08d039cd2d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']
2025-06-09 15:05:10,675 - INFO - VN ctest-vn-04611356 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 15:05:10,675 - DEBUG - Verifying the vn in opserver
2025-06-09 15:05:10,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 virtual network link through opserver 10.0.0.254
2025-06-09 15:05:10,675 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 15:05:10,971 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 15:05:14,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 virtual network link through opserver 10.0.0.254
2025-06-09 15:05:14,034 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 15:05:14,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356?flat'}
2025-06-09 15:05:14,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 is found in opserver
2025-06-09 15:05:14,056 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 15:05:14,061 - DEBUG - VRF ids for VN ctest-vn-04611356: {}
2025-06-09 15:05:14,061 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 15:05:14,068 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36
2025-06-09 15:05:14,080 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250
2025-06-09 15:05:14,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,169 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,185 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f
2025-06-09 15:05:14,193 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f
2025-06-09 15:05:14,202 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/218ad530-8387-4e15-9307-ed835c7141ae
2025-06-09 15:05:14,210 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 15:05:14,210 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,220 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f
2025-06-09 15:05:14,235 - INFO - Verified VN network id 8 for VN a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,235 - INFO - Verifications in API Server for VN ctest-vn-05679803 passed
2025-06-09 15:05:14,235 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f
2025-06-09 15:05:14,254 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f
2025-06-09 15:05:14,262 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/218ad530-8387-4e15-9307-ed835c7141ae
2025-06-09 15:05:14,275 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00855122', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11894041524181549422', 'uuid-lslong': '12261605430431147167'}, 'enable': 'true', 'created': '2025-06-09T15:05:08', 'last-modified': '2025-06-09T15:05:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.453004'}
2025-06-09 15:05:14,281 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 15:05:14,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05679803 passed
2025-06-09 15:05:14,282 - DEBUG - ====Verifying policy data for ctest-vn-05679803 in API_Server ======
2025-06-09 15:05:14,282 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 15:05:14,289 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36
2025-06-09 15:05:14,301 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250
2025-06-09 15:05:14,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f
2025-06-09 15:05:14,384 - DEBUG - ==>Verifying data for policy with id: ab4d678d-05ca-433f-a41a-f08d039cd2d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']
2025-06-09 15:05:14,384 - INFO - VN ctest-vn-05679803 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 15:05:14,384 - DEBUG - Verifying the vn in opserver
2025-06-09 15:05:14,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803 virtual network link through opserver 10.0.0.254
2025-06-09 15:05:14,384 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 15:05:14,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803?flat'}
2025-06-09 15:05:14,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803 is found in opserver
2025-06-09 15:05:14,406 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 15:05:14,411 - DEBUG - VRF ids for VN ctest-vn-05679803: {}
2025-06-09 15:05:14,469 - DEBUG - Services list from nova: [