2025-08-12 01:44:24,268 - INFO - Domain Default found not creating
2025-08-12 01:44:24,407 - INFO - Project ctest-TestBasicPolicy-19437996 not found, creating it
2025-08-12 01:44:24,841 - INFO - Created Project:ctest-TestBasicPolicy-19437996, ID : d3398526-6f10-4e66-9526-ebf70eeb3ca8
2025-08-12 01:44:26,349 - INFO - ================================================================================
2025-08-12 01:44:26,350 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 01:44:26,350 - 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-08-12 01:44:26,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-08-12 01:44:26,614 - INFO - Initial checks done. Running the testcase now
2025-08-12 01:44:26,614 - INFO -
2025-08-12 01:44:27,153 - DEBUG - Response for create_network : {'network': {'id': 'c4cc6e22-3c92-4238-8ea3-46a2e4c0197e', 'name': 'ctest-vn-28970241', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'project_id': 'd33985266f104e669526ebf70eeb3ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-vn-28970241'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:27,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '8835e30e-d0c8-4cbb-a31b-9566274846af', 'name': '', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'network_id': 'c4cc6e22-3c92-4238-8ea3-46a2e4c0197e', 'ip_version': 4, 'cidr': '129.125.185.64/26', 'allocation_pools': [{'start': '129.125.185.66', 'end': '129.125.185.126'}], 'gateway_ip': '129.125.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.125.185.66', 'tags': [], 'project_id': 'd33985266f104e669526ebf70eeb3ca8'}}
2025-08-12 01:44:27,331 - INFO - Created VN ctest-vn-28970241
2025-08-12 01:44:27,384 - DEBUG - VN ctest-vn-28970241 UUID is c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:27,698 - DEBUG - Response for create_network : {'network': {'id': '55eb8190-7bfc-4538-a081-65778ca4cd35', 'name': 'ctest-vn-00052636', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'project_id': 'd33985266f104e669526ebf70eeb3ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-vn-00052636'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:27,929 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac90942d-d0ee-4efc-8947-74d5a7224305', 'name': '', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'network_id': '55eb8190-7bfc-4538-a081-65778ca4cd35', 'ip_version': 4, 'cidr': '213.53.39.64/26', 'allocation_pools': [{'start': '213.53.39.66', 'end': '213.53.39.126'}], 'gateway_ip': '213.53.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.53.39.66', 'tags': [], 'project_id': 'd33985266f104e669526ebf70eeb3ca8'}}
2025-08-12 01:44:27,945 - INFO - Created VN ctest-vn-00052636
2025-08-12 01:44:27,996 - DEBUG - VN ctest-vn-00052636 UUID is 55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:28,122 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241, 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-19437996:ctest-vn-00052636, 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-08-12 01:44:28,404 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4cc6e22-3c92-4238-8ea3-46a2e4c0197e', 'name': 'ctest-vn-28970241', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'project_id': 'd33985266f104e669526ebf70eeb3ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8835e30e-d0c8-4cbb-a31b-9566274846af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-vn-28970241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-policy-allow-all-22564995']], 'subnet_ipam': [{'subnet_cidr': '129.125.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:28,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55eb8190-7bfc-4538-a081-65778ca4cd35', 'name': 'ctest-vn-00052636', 'tenant_id': 'd33985266f104e669526ebf70eeb3ca8', 'project_id': 'd33985266f104e669526ebf70eeb3ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac90942d-d0ee-4efc-8947-74d5a7224305'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-vn-00052636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-policy-allow-all-22564995']], 'subnet_ipam': [{'subnet_cidr': '213.53.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:28,792 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-12 01:44:29,081 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-12 01:44:29,109 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f
2025-08-12 01:44:29,122 - DEBUG - Requesting: http://10.0.0.242:8082/project/d3398526-6f10-4e66-9526-ebf70eeb3ca8
2025-08-12 01:44:29,197 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,208 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,218 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7cf2d8db-6bfa-46d1-9e05-cff77f4aa800
2025-08-12 01:44:29,225 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7cf2d8db-6bfa-46d1-9e05-cff77f4aa800
2025-08-12 01:44:29,232 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f88353a6-6109-43eb-818e-d4a948f6784c
2025-08-12 01:44:29,238 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 01:44:29,238 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,247 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7cf2d8db-6bfa-46d1-9e05-cff77f4aa800
2025-08-12 01:44:29,261 - INFO - Verified VN network id 11 for VN c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,261 - INFO - Verifications in API Server for VN ctest-vn-28970241 passed
2025-08-12 01:44:29,261 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,270 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7cf2d8db-6bfa-46d1-9e05-cff77f4aa800
2025-08-12 01:44:29,276 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7cf2d8db-6bfa-46d1-9e05-cff77f4aa800
2025-08-12 01:44:29,283 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f88353a6-6109-43eb-818e-d4a948f6784c
2025-08-12 01:44:29,294 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19437996', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14180830420007010872', 'uuid-lslong': '10278136440026044798'}, 'enable': 'true', 'created': '2025-08-12T01:44:27', 'last-modified': '2025-08-12T01:44:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911474'}
2025-08-12 01:44:29,301 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 01:44:29,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28970241 passed
2025-08-12 01:44:29,301 - DEBUG - ====Verifying policy data for ctest-vn-28970241 in API_Server ======
2025-08-12 01:44:29,301 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-12 01:44:29,306 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f
2025-08-12 01:44:29,318 - DEBUG - Requesting: http://10.0.0.242:8082/project/d3398526-6f10-4e66-9526-ebf70eeb3ca8
2025-08-12 01:44:29,394 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c4cc6e22-3c92-4238-8ea3-46a2e4c0197e
2025-08-12 01:44:29,406 - DEBUG - ==>Verifying data for policy with id: f2243532-a101-4dab-92f5-6f1b67131540, fqn: ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-policy-allow-all-22564995']
2025-08-12 01:44:29,406 - INFO - VN ctest-vn-28970241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 01:44:29,406 - DEBUG - Verifying the vn in opserver
2025-08-12 01:44:29,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241 virtual network link through opserver 10.0.0.242
2025-08-12 01:44:29,406 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-12 01:44:29,693 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-12 01:44:29,744 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241?flat'}
2025-08-12 01:44:29,744 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-28970241 is found in opserver
2025-08-12 01:44:29,754 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 01:44:29,758 - DEBUG - VRF ids for VN ctest-vn-28970241: {}
2025-08-12 01:44:29,758 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-12 01:44:29,764 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f
2025-08-12 01:44:29,774 - DEBUG - Requesting: http://10.0.0.242:8082/project/d3398526-6f10-4e66-9526-ebf70eeb3ca8
2025-08-12 01:44:29,843 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:29,854 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:29,864 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/42b6be27-7cb5-47bc-b63c-55ce1c8ef9a4
2025-08-12 01:44:29,871 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/42b6be27-7cb5-47bc-b63c-55ce1c8ef9a4
2025-08-12 01:44:29,878 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee20408b-e67d-4d9d-bdc3-5c48dfa4a17f
2025-08-12 01:44:29,884 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 01:44:29,884 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:29,893 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/42b6be27-7cb5-47bc-b63c-55ce1c8ef9a4
2025-08-12 01:44:29,907 - INFO - Verified VN network id 12 for VN 55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:29,908 - INFO - Verifications in API Server for VN ctest-vn-00052636 passed
2025-08-12 01:44:29,908 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:29,918 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/42b6be27-7cb5-47bc-b63c-55ce1c8ef9a4
2025-08-12 01:44:29,925 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/42b6be27-7cb5-47bc-b63c-55ce1c8ef9a4
2025-08-12 01:44:29,931 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee20408b-e67d-4d9d-bdc3-5c48dfa4a17f
2025-08-12 01:44:29,942 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-00052636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19437996', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6191184570306282808', 'uuid-lslong': '11565636882199268661'}, 'enable': 'true', 'created': '2025-08-12T01:44:27', 'last-modified': '2025-08-12T01:44:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338646'}
2025-08-12 01:44:29,948 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 01:44:29,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00052636 passed
2025-08-12 01:44:29,948 - DEBUG - ====Verifying policy data for ctest-vn-00052636 in API_Server ======
2025-08-12 01:44:29,948 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-12 01:44:29,953 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f
2025-08-12 01:44:29,964 - DEBUG - Requesting: http://10.0.0.242:8082/project/d3398526-6f10-4e66-9526-ebf70eeb3ca8
2025-08-12 01:44:30,033 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/55eb8190-7bfc-4538-a081-65778ca4cd35
2025-08-12 01:44:30,043 - DEBUG - ==>Verifying data for policy with id: f2243532-a101-4dab-92f5-6f1b67131540, fqn: ['default-domain', 'ctest-TestBasicPolicy-19437996', 'ctest-policy-allow-all-22564995']
2025-08-12 01:44:30,043 - INFO - VN ctest-vn-00052636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 01:44:30,043 - DEBUG - Verifying the vn in opserver
2025-08-12 01:44:30,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-00052636 virtual network link through opserver 10.0.0.242
2025-08-12 01:44:30,043 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-12 01:44:30,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-00052636', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-00052636?flat'}
2025-08-12 01:44:30,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19437996:ctest-vn-00052636 is found in opserver
2025-08-12 01:44:30,063 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 01:44:30,067 - DEBUG - VRF ids for VN ctest-vn-00052636: {}
2025-08-12 01:44:30,118 - DEBUG - Services list from nova: [