2025-07-23 15:56:32,729 - INFO - Domain Default found not creating
2025-07-23 15:56:32,889 - INFO - Project ctest-TestBasicPolicy-63236450 not found, creating it
2025-07-23 15:56:33,362 - INFO - Created Project:ctest-TestBasicPolicy-63236450, ID : 9ef79c38-941d-4625-9bd5-9c6976f39d59
2025-07-23 15:56:34,825 - INFO - ================================================================================
2025-07-23 15:56:34,825 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 15:56:34,825 - 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-07-23 15:56:35,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with
2025-07-23 15:56:35,090 - INFO - Initial checks done. Running the testcase now
2025-07-23 15:56:35,090 - INFO -
2025-07-23 15:56:35,651 - DEBUG - Response for create_network : {'network': {'id': 'dae7189d-b569-4568-a9a7-eb84d7df2dbe', 'name': 'ctest-vn-79841529', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'project_id': '9ef79c38941d46259bd59c6976f39d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-vn-79841529'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 15:56:35,857 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec3932a9-e665-4fe4-aa30-3905025f98a7', 'name': '', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'network_id': 'dae7189d-b569-4568-a9a7-eb84d7df2dbe', 'ip_version': 4, 'cidr': '100.157.185.64/26', 'allocation_pools': [{'start': '100.157.185.66', 'end': '100.157.185.126'}], 'gateway_ip': '100.157.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.157.185.66', 'tags': [], 'project_id': '9ef79c38941d46259bd59c6976f39d59'}}
2025-07-23 15:56:35,876 - INFO - Created VN ctest-vn-79841529
2025-07-23 15:56:35,931 - DEBUG - VN ctest-vn-79841529 UUID is dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:36,229 - DEBUG - Response for create_network : {'network': {'id': '5c916305-782c-42b9-bbe7-a557dbdcc8a0', 'name': 'ctest-vn-35021960', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'project_id': '9ef79c38941d46259bd59c6976f39d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-vn-35021960'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 15:56:36,452 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd048ee09-bd44-46df-a20f-1dba6dc6dcf8', 'name': '', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'network_id': '5c916305-782c-42b9-bbe7-a557dbdcc8a0', 'ip_version': 4, 'cidr': '223.21.214.192/26', 'allocation_pools': [{'start': '223.21.214.194', 'end': '223.21.214.254'}], 'gateway_ip': '223.21.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.21.214.194', 'tags': [], 'project_id': '9ef79c38941d46259bd59c6976f39d59'}}
2025-07-23 15:56:36,476 - INFO - Created VN ctest-vn-35021960
2025-07-23 15:56:36,531 - DEBUG - VN ctest-vn-35021960 UUID is 5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:36,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529, 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-63236450:ctest-vn-35021960, 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-07-23 15:56:36,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dae7189d-b569-4568-a9a7-eb84d7df2dbe', 'name': 'ctest-vn-79841529', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'project_id': '9ef79c38941d46259bd59c6976f39d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec3932a9-e665-4fe4-aa30-3905025f98a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-vn-79841529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-policy-allow-all-24963257']], 'subnet_ipam': [{'subnet_cidr': '100.157.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 15:56:37,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c916305-782c-42b9-bbe7-a557dbdcc8a0', 'name': 'ctest-vn-35021960', 'tenant_id': '9ef79c38941d46259bd59c6976f39d59', 'project_id': '9ef79c38941d46259bd59c6976f39d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d048ee09-bd44-46df-a20f-1dba6dc6dcf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-vn-35021960'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-policy-allow-all-24963257']], 'subnet_ipam': [{'subnet_cidr': '223.21.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 15:56:37,403 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 15:56:37,697 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 15:56:37,725 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4
2025-07-23 15:56:37,741 - DEBUG - Requesting: http://10.0.0.19:8082/project/9ef79c38-941d-4625-9bd5-9c6976f39d59
2025-07-23 15:56:37,818 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:37,830 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:37,840 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24846a6b-1be3-47d0-a72f-c2e50295dd2c
2025-07-23 15:56:37,849 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24846a6b-1be3-47d0-a72f-c2e50295dd2c
2025-07-23 15:56:37,856 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e9fee005-0175-4e2a-90f4-c407adca4c56
2025-07-23 15:56:37,864 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 15:56:37,864 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:37,875 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24846a6b-1be3-47d0-a72f-c2e50295dd2c
2025-07-23 15:56:37,891 - INFO - Verified VN network id 9 for VN dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:37,891 - INFO - Verifications in API Server for VN ctest-vn-79841529 passed
2025-07-23 15:56:37,891 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:37,905 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24846a6b-1be3-47d0-a72f-c2e50295dd2c
2025-07-23 15:56:37,912 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24846a6b-1be3-47d0-a72f-c2e50295dd2c
2025-07-23 15:56:37,920 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e9fee005-0175-4e2a-90f4-c407adca4c56
2025-07-23 15:56:37,932 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63236450', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15773603285520958824', 'uuid-lslong': '12224998669310438846'}, 'enable': 'true', 'created': '2025-07-23T15:56:35', 'last-modified': '2025-07-23T15:56:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993099'}
2025-07-23 15:56:37,939 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 15:56:37,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79841529 passed
2025-07-23 15:56:37,939 - DEBUG - ====Verifying policy data for ctest-vn-79841529 in API_Server ======
2025-07-23 15:56:37,940 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 15:56:37,945 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4
2025-07-23 15:56:37,958 - DEBUG - Requesting: http://10.0.0.19:8082/project/9ef79c38-941d-4625-9bd5-9c6976f39d59
2025-07-23 15:56:38,034 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dae7189d-b569-4568-a9a7-eb84d7df2dbe
2025-07-23 15:56:38,049 - DEBUG - ==>Verifying data for policy with id: 9ed16f35-df2e-4bc6-8ac5-96da76255411, fqn: ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-policy-allow-all-24963257']
2025-07-23 15:56:38,049 - INFO - VN ctest-vn-79841529 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 15:56:38,049 - DEBUG - Verifying the vn in opserver
2025-07-23 15:56:38,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529 virtual network link through opserver 10.0.0.19
2025-07-23 15:56:38,049 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 15:56:38,342 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 15:56:38,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529?flat'}
2025-07-23 15:56:38,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-79841529 is found in opserver
2025-07-23 15:56:38,416 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 15:56:38,422 - DEBUG - VRF ids for VN ctest-vn-79841529: {}
2025-07-23 15:56:38,422 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 15:56:38,428 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4
2025-07-23 15:56:38,442 - DEBUG - Requesting: http://10.0.0.19:8082/project/9ef79c38-941d-4625-9bd5-9c6976f39d59
2025-07-23 15:56:38,518 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,534 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,546 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f30dc700-a82c-4133-b43a-0f2bca1e87e3
2025-07-23 15:56:38,557 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f30dc700-a82c-4133-b43a-0f2bca1e87e3
2025-07-23 15:56:38,572 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/11022fb2-9a3f-48c1-a34e-4ddf6f7447cb
2025-07-23 15:56:38,581 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 15:56:38,581 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,595 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f30dc700-a82c-4133-b43a-0f2bca1e87e3
2025-07-23 15:56:38,614 - INFO - Verified VN network id 10 for VN 5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,614 - INFO - Verifications in API Server for VN ctest-vn-35021960 passed
2025-07-23 15:56:38,614 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,634 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f30dc700-a82c-4133-b43a-0f2bca1e87e3
2025-07-23 15:56:38,644 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f30dc700-a82c-4133-b43a-0f2bca1e87e3
2025-07-23 15:56:38,656 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/11022fb2-9a3f-48c1-a34e-4ddf6f7447cb
2025-07-23 15:56:38,671 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-35021960', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63236450', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6670221398254568121', 'uuid-lslong': '13539972601482102944'}, 'enable': 'true', 'created': '2025-07-23T15:56:36', 'last-modified': '2025-07-23T15:56:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474936'}
2025-07-23 15:56:38,678 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 15:56:38,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35021960 passed
2025-07-23 15:56:38,678 - DEBUG - ====Verifying policy data for ctest-vn-35021960 in API_Server ======
2025-07-23 15:56:38,678 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 15:56:38,685 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4
2025-07-23 15:56:38,699 - DEBUG - Requesting: http://10.0.0.19:8082/project/9ef79c38-941d-4625-9bd5-9c6976f39d59
2025-07-23 15:56:38,777 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c916305-782c-42b9-bbe7-a557dbdcc8a0
2025-07-23 15:56:38,788 - DEBUG - ==>Verifying data for policy with id: 9ed16f35-df2e-4bc6-8ac5-96da76255411, fqn: ['default-domain', 'ctest-TestBasicPolicy-63236450', 'ctest-policy-allow-all-24963257']
2025-07-23 15:56:38,789 - INFO - VN ctest-vn-35021960 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 15:56:38,789 - DEBUG - Verifying the vn in opserver
2025-07-23 15:56:38,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-35021960 virtual network link through opserver 10.0.0.19
2025-07-23 15:56:38,789 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 15:56:38,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-35021960', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-35021960?flat'}
2025-07-23 15:56:38,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63236450:ctest-vn-35021960 is found in opserver
2025-07-23 15:56:38,813 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 15:56:38,819 - DEBUG - VRF ids for VN ctest-vn-35021960: {}
2025-07-23 15:56:38,882 - DEBUG - Services list from nova: [