2025-09-29 01:51:30,865 - INFO - Domain Default found not creating
2025-09-29 01:51:31,025 - INFO - Project ctest-TestBasicPolicy-08678486 not found, creating it
2025-09-29 01:51:31,473 - INFO - Created Project:ctest-TestBasicPolicy-08678486, ID : 0bbf00d5-9a94-410b-a75e-6410f0cfcd29
2025-09-29 01:51:33,551 - INFO - ================================================================================
2025-09-29 01:51:33,551 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-29 01:51:33,551 - 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-09-29 01:51:33,812 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with
2025-09-29 01:51:33,812 - INFO - Initial checks done. Running the testcase now
2025-09-29 01:51:33,812 - INFO -
2025-09-29 01:51:34,339 - DEBUG - Response for create_network : {'network': {'id': '66dc1bc0-aa1f-4176-98df-1effabdc1bb5', 'name': 'ctest-vn-14185719', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-vn-14185719'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:51:34,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c04aedb3-285f-4491-8ad4-d3c26d81a916', 'name': '', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'network_id': '66dc1bc0-aa1f-4176-98df-1effabdc1bb5', 'ip_version': 4, 'cidr': '173.237.12.64/26', 'allocation_pools': [{'start': '173.237.12.66', 'end': '173.237.12.126'}], 'gateway_ip': '173.237.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.237.12.66', 'tags': [], 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29'}}
2025-09-29 01:51:34,547 - INFO - Created VN ctest-vn-14185719
2025-09-29 01:51:34,599 - DEBUG - VN ctest-vn-14185719 UUID is 66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:34,925 - DEBUG - Response for create_network : {'network': {'id': '8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7', 'name': 'ctest-vn-05895514', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-vn-05895514'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:51:35,092 - DEBUG - Response for create_subnet : {'subnet': {'id': '20948011-b700-4b57-b3b3-bb830a2480ce', 'name': '', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'network_id': '8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7', 'ip_version': 4, 'cidr': '94.13.1.0/26', 'allocation_pools': [{'start': '94.13.1.2', 'end': '94.13.1.62'}], 'gateway_ip': '94.13.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.13.1.2', 'tags': [], 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29'}}
2025-09-29 01:51:35,108 - INFO - Created VN ctest-vn-05895514
2025-09-29 01:51:35,163 - DEBUG - VN ctest-vn-05895514 UUID is 8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:35,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719, 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-08678486:ctest-vn-05895514, 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-09-29 01:51:35,604 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66dc1bc0-aa1f-4176-98df-1effabdc1bb5', 'name': 'ctest-vn-14185719', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c04aedb3-285f-4491-8ad4-d3c26d81a916'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-vn-14185719'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-policy-allow-all-98706145']], 'subnet_ipam': [{'subnet_cidr': '173.237.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:51:35,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7', 'name': 'ctest-vn-05895514', 'tenant_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'project_id': '0bbf00d59a94410ba75e6410f0cfcd29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20948011-b700-4b57-b3b3-bb830a2480ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-vn-05895514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-policy-allow-all-98706145']], 'subnet_ipam': [{'subnet_cidr': '94.13.1.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:51:36,003 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-29 01:51:36,304 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-29 01:51:36,333 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90
2025-09-29 01:51:36,345 - DEBUG - Requesting: http://10.0.0.49:8082/project/0bbf00d5-9a94-410b-a75e-6410f0cfcd29
2025-09-29 01:51:36,419 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,428 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,436 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f3e1ce4e-6b7f-4289-871b-b620370600c4
2025-09-29 01:51:36,442 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f3e1ce4e-6b7f-4289-871b-b620370600c4
2025-09-29 01:51:36,448 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/25cd8a30-530e-413f-b45b-6320d38de692
2025-09-29 01:51:36,454 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 01:51:36,454 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,463 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f3e1ce4e-6b7f-4289-871b-b620370600c4
2025-09-29 01:51:36,478 - INFO - Verified VN network id 10 for VN 66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,478 - INFO - Verifications in API Server for VN ctest-vn-14185719 passed
2025-09-29 01:51:36,478 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,487 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f3e1ce4e-6b7f-4289-871b-b620370600c4
2025-09-29 01:51:36,494 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f3e1ce4e-6b7f-4289-871b-b620370600c4
2025-09-29 01:51:36,500 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/25cd8a30-530e-413f-b45b-6320d38de692
2025-09-29 01:51:36,513 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08678486', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7411829601046839670', 'uuid-lslong': '11015557297020345269'}, 'enable': 'true', 'created': '2025-09-29T01:51:34', 'last-modified': '2025-09-29T01:51:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935920'}
2025-09-29 01:51:36,519 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 01:51:36,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14185719 passed
2025-09-29 01:51:36,519 - DEBUG - ====Verifying policy data for ctest-vn-14185719 in API_Server ======
2025-09-29 01:51:36,519 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-29 01:51:36,525 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90
2025-09-29 01:51:36,536 - DEBUG - Requesting: http://10.0.0.49:8082/project/0bbf00d5-9a94-410b-a75e-6410f0cfcd29
2025-09-29 01:51:36,608 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/66dc1bc0-aa1f-4176-98df-1effabdc1bb5
2025-09-29 01:51:36,618 - DEBUG - ==>Verifying data for policy with id: 39c8e1b4-eaac-4638-b73a-f9f1322c531e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-policy-allow-all-98706145']
2025-09-29 01:51:36,618 - INFO - VN ctest-vn-14185719 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 01:51:36,618 - DEBUG - Verifying the vn in opserver
2025-09-29 01:51:36,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719 virtual network link through opserver 10.0.0.49
2025-09-29 01:51:36,618 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-29 01:51:36,910 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-29 01:51:36,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719?flat'}
2025-09-29 01:51:36,958 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-14185719 is found in opserver
2025-09-29 01:51:36,972 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 01:51:36,976 - DEBUG - VRF ids for VN ctest-vn-14185719: {}
2025-09-29 01:51:36,976 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-29 01:51:36,982 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90
2025-09-29 01:51:36,991 - DEBUG - Requesting: http://10.0.0.49:8082/project/0bbf00d5-9a94-410b-a75e-6410f0cfcd29
2025-09-29 01:51:37,062 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,074 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,082 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/42817b36-11d8-4744-9d6c-c559ed905e33
2025-09-29 01:51:37,088 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/42817b36-11d8-4744-9d6c-c559ed905e33
2025-09-29 01:51:37,094 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/14fb2eed-607b-43d7-a8d6-f9892ce5b56e
2025-09-29 01:51:37,101 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 01:51:37,101 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,109 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/42817b36-11d8-4744-9d6c-c559ed905e33
2025-09-29 01:51:37,121 - INFO - Verified VN network id 11 for VN 8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,121 - INFO - Verifications in API Server for VN ctest-vn-05895514 passed
2025-09-29 01:51:37,121 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,129 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/42817b36-11d8-4744-9d6c-c559ed905e33
2025-09-29 01:51:37,140 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/42817b36-11d8-4744-9d6c-c559ed905e33
2025-09-29 01:51:37,147 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/14fb2eed-607b-43d7-a8d6-f9892ce5b56e
2025-09-29 01:51:37,159 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-05895514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08678486', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10176663457011484179', 'uuid-lslong': '11292038171687071943'}, 'enable': 'true', 'created': '2025-09-29T01:51:34', 'last-modified': '2025-09-29T01:51:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338976'}
2025-09-29 01:51:37,165 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 01:51:37,165 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05895514 passed
2025-09-29 01:51:37,165 - DEBUG - ====Verifying policy data for ctest-vn-05895514 in API_Server ======
2025-09-29 01:51:37,166 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-29 01:51:37,171 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90
2025-09-29 01:51:37,181 - DEBUG - Requesting: http://10.0.0.49:8082/project/0bbf00d5-9a94-410b-a75e-6410f0cfcd29
2025-09-29 01:51:37,252 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/8d3ac57e-f1de-4613-9cb5-60e3ad8f30c7
2025-09-29 01:51:37,261 - DEBUG - ==>Verifying data for policy with id: 39c8e1b4-eaac-4638-b73a-f9f1322c531e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08678486', 'ctest-policy-allow-all-98706145']
2025-09-29 01:51:37,261 - INFO - VN ctest-vn-05895514 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 01:51:37,261 - DEBUG - Verifying the vn in opserver
2025-09-29 01:51:37,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-05895514 virtual network link through opserver 10.0.0.49
2025-09-29 01:51:37,261 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-29 01:51:37,270 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-05895514', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-05895514?flat'}
2025-09-29 01:51:37,270 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08678486:ctest-vn-05895514 is found in opserver
2025-09-29 01:51:37,279 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 01:51:37,285 - DEBUG - VRF ids for VN ctest-vn-05895514: {}
2025-09-29 01:51:37,347 - DEBUG - Services list from nova: [