2025-05-30 02:47:04,973 - INFO - Domain Default found not creating
2025-05-30 02:47:05,113 - INFO - Project ctest-TestBasicPolicy-79788885 not found, creating it
2025-05-30 02:47:05,570 - INFO - Created Project:ctest-TestBasicPolicy-79788885, ID : 38fdefb1-d202-42bc-b1be-d39de53886cd
2025-05-30 02:47:07,116 - INFO - ================================================================================
2025-05-30 02:47:07,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-30 02:47:07,116 - 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-05-30 02:47:07,369 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-30 02:47:07,369 - INFO - Initial checks done. Running the testcase now
2025-05-30 02:47:07,369 - INFO -
2025-05-30 02:47:07,966 - DEBUG - Response for create_network : {'network': {'id': 'eadc50a1-5138-484e-834c-4807e48f551c', 'name': 'ctest-vn-68210354', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'project_id': '38fdefb1d20242bcb1bed39de53886cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-vn-68210354'], 'port_security_enabled': True, 'description': ''}}
2025-05-30 02:47:08,154 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a037b99b-5dc7-4f15-a755-78675a5646f0', 'name': '', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'network_id': 'eadc50a1-5138-484e-834c-4807e48f551c', 'ip_version': 4, 'cidr': '2.148.124.64/26', 'allocation_pools': [{'start': '2.148.124.66', 'end': '2.148.124.126'}], 'gateway_ip': '2.148.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.148.124.66', 'tags': [], 'project_id': '38fdefb1d20242bcb1bed39de53886cd'}}
2025-05-30 02:47:08,171 - INFO - Created VN ctest-vn-68210354
2025-05-30 02:47:08,223 - DEBUG - VN ctest-vn-68210354 UUID is eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:08,520 - DEBUG - Response for create_network : {'network': {'id': '1c350b92-c12b-438d-877c-e884398b8ed6', 'name': 'ctest-vn-04749184', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'project_id': '38fdefb1d20242bcb1bed39de53886cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-vn-04749184'], 'port_security_enabled': True, 'description': ''}}
2025-05-30 02:47:08,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a961cdf-516a-4798-9db3-0f8ba42efcbf', 'name': '', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'network_id': '1c350b92-c12b-438d-877c-e884398b8ed6', 'ip_version': 4, 'cidr': '2.244.78.192/26', 'allocation_pools': [{'start': '2.244.78.194', 'end': '2.244.78.254'}], 'gateway_ip': '2.244.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.244.78.194', 'tags': [], 'project_id': '38fdefb1d20242bcb1bed39de53886cd'}}
2025-05-30 02:47:08,733 - INFO - Created VN ctest-vn-04749184
2025-05-30 02:47:08,787 - DEBUG - VN ctest-vn-04749184 UUID is 1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:09,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354, 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-79788885:ctest-vn-04749184, 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-05-30 02:47:09,310 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eadc50a1-5138-484e-834c-4807e48f551c', 'name': 'ctest-vn-68210354', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'project_id': '38fdefb1d20242bcb1bed39de53886cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a037b99b-5dc7-4f15-a755-78675a5646f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-vn-68210354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-policy-allow-all-09928586']], 'subnet_ipam': [{'subnet_cidr': '2.148.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-30 02:47:09,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c350b92-c12b-438d-877c-e884398b8ed6', 'name': 'ctest-vn-04749184', 'tenant_id': '38fdefb1d20242bcb1bed39de53886cd', 'project_id': '38fdefb1d20242bcb1bed39de53886cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a961cdf-516a-4798-9db3-0f8ba42efcbf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-vn-04749184'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-policy-allow-all-09928586']], 'subnet_ipam': [{'subnet_cidr': '2.244.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-30 02:47:09,703 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-30 02:47:10,034 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-30 02:47:10,061 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f89891ce-b5ab-46ba-bed4-dd5685b9bfeb
2025-05-30 02:47:10,075 - DEBUG - Requesting: http://10.0.0.254:8082/project/38fdefb1-d202-42bc-b1be-d39de53886cd
2025-05-30 02:47:10,151 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,179 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96d74efa-11aa-4ea9-8243-a4e8223c01e2
2025-05-30 02:47:10,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96d74efa-11aa-4ea9-8243-a4e8223c01e2
2025-05-30 02:47:10,211 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4f8e79f4-8577-4f49-9a54-2e05daf48b98
2025-05-30 02:47:10,217 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-30 02:47:10,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96d74efa-11aa-4ea9-8243-a4e8223c01e2
2025-05-30 02:47:10,240 - INFO - Verified VN network id 8 for VN eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,240 - INFO - Verifications in API Server for VN ctest-vn-68210354 passed
2025-05-30 02:47:10,241 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,249 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96d74efa-11aa-4ea9-8243-a4e8223c01e2
2025-05-30 02:47:10,256 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96d74efa-11aa-4ea9-8243-a4e8223c01e2
2025-05-30 02:47:10,263 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4f8e79f4-8577-4f49-9a54-2e05daf48b98
2025-05-30 02:47:10,274 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79788885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16923490153534081102', 'uuid-lslong': '9461016115935139100'}, 'enable': 'true', 'created': '2025-05-30T02:47:07', 'last-modified': '2025-05-30T02:47:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985106'}
2025-05-30 02:47:10,281 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-30 02:47:10,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68210354 passed
2025-05-30 02:47:10,281 - DEBUG - ====Verifying policy data for ctest-vn-68210354 in API_Server ======
2025-05-30 02:47:10,281 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-30 02:47:10,286 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f89891ce-b5ab-46ba-bed4-dd5685b9bfeb
2025-05-30 02:47:10,298 - DEBUG - Requesting: http://10.0.0.254:8082/project/38fdefb1-d202-42bc-b1be-d39de53886cd
2025-05-30 02:47:10,370 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eadc50a1-5138-484e-834c-4807e48f551c
2025-05-30 02:47:10,380 - DEBUG - ==>Verifying data for policy with id: f099b5f9-df2d-4720-8cf9-f05116c0a3ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-policy-allow-all-09928586']
2025-05-30 02:47:10,380 - INFO - VN ctest-vn-68210354 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-30 02:47:10,381 - DEBUG - Verifying the vn in opserver
2025-05-30 02:47:10,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354 virtual network link through opserver 10.0.0.254
2025-05-30 02:47:10,381 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-30 02:47:10,712 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-30 02:47:10,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354?flat'}
2025-05-30 02:47:10,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-68210354 is found in opserver
2025-05-30 02:47:10,777 - DEBUG - Do not have enough data to verify VN in agent
2025-05-30 02:47:10,782 - DEBUG - VRF ids for VN ctest-vn-68210354: {}
2025-05-30 02:47:10,782 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-30 02:47:10,788 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f89891ce-b5ab-46ba-bed4-dd5685b9bfeb
2025-05-30 02:47:10,800 - DEBUG - Requesting: http://10.0.0.254:8082/project/38fdefb1-d202-42bc-b1be-d39de53886cd
2025-05-30 02:47:10,873 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:10,887 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:10,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba4eaa57-959b-4068-b1b2-171706acf97e
2025-05-30 02:47:10,905 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba4eaa57-959b-4068-b1b2-171706acf97e
2025-05-30 02:47:10,912 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/637ef745-e819-45bb-93cb-c0bb504c415f
2025-05-30 02:47:10,919 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-30 02:47:10,919 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:10,929 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba4eaa57-959b-4068-b1b2-171706acf97e
2025-05-30 02:47:10,944 - INFO - Verified VN network id 9 for VN 1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:10,944 - INFO - Verifications in API Server for VN ctest-vn-04749184 passed
2025-05-30 02:47:10,944 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:10,954 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba4eaa57-959b-4068-b1b2-171706acf97e
2025-05-30 02:47:10,960 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba4eaa57-959b-4068-b1b2-171706acf97e
2025-05-30 02:47:10,966 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/637ef745-e819-45bb-93cb-c0bb504c415f
2025-05-30 02:47:10,978 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-04749184', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79788885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2032543531761615757', 'uuid-lslong': '9762933746831167190'}, 'enable': 'true', 'created': '2025-05-30T02:47:08', 'last-modified': '2025-05-30T02:47:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.460804'}
2025-05-30 02:47:10,986 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-30 02:47:10,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04749184 passed
2025-05-30 02:47:10,988 - DEBUG - ====Verifying policy data for ctest-vn-04749184 in API_Server ======
2025-05-30 02:47:10,988 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-30 02:47:10,994 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f89891ce-b5ab-46ba-bed4-dd5685b9bfeb
2025-05-30 02:47:11,007 - DEBUG - Requesting: http://10.0.0.254:8082/project/38fdefb1-d202-42bc-b1be-d39de53886cd
2025-05-30 02:47:11,081 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c350b92-c12b-438d-877c-e884398b8ed6
2025-05-30 02:47:11,091 - DEBUG - ==>Verifying data for policy with id: f099b5f9-df2d-4720-8cf9-f05116c0a3ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-79788885', 'ctest-policy-allow-all-09928586']
2025-05-30 02:47:11,092 - INFO - VN ctest-vn-04749184 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-30 02:47:11,092 - DEBUG - Verifying the vn in opserver
2025-05-30 02:47:11,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-04749184 virtual network link through opserver 10.0.0.254
2025-05-30 02:47:11,092 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-30 02:47:11,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-04749184', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-04749184?flat'}
2025-05-30 02:47:11,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79788885:ctest-vn-04749184 is found in opserver
2025-05-30 02:47:11,113 - DEBUG - Do not have enough data to verify VN in agent
2025-05-30 02:47:11,119 - DEBUG - VRF ids for VN ctest-vn-04749184: {}
2025-05-30 02:47:11,174 - DEBUG - Services list from nova: [