2025-09-15 16:15:32,625 - INFO - Domain Default found not creating
2025-09-15 16:15:32,820 - INFO - Project ctest-TestBasicPolicy-99688666 not found, creating it
2025-09-15 16:15:33,337 - INFO - Created Project:ctest-TestBasicPolicy-99688666, ID : 9d8a566c-1b31-4dd3-a0e2-0ece1c990221
2025-09-15 16:15:34,894 - INFO - ================================================================================
2025-09-15 16:15:34,894 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 16:15:34,894 - 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-15 16:15:35,169 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-15 16:15:35,169 - INFO - Initial checks done. Running the testcase now
2025-09-15 16:15:35,169 - INFO -
2025-09-15 16:15:35,741 - DEBUG - Response for create_network : {'network': {'id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'name': 'ctest-vn-66684040', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-66684040'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 16:15:35,966 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c59bea05-19f0-484d-b6e3-8a6087a52472', 'name': '', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'network_id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'ip_version': 4, 'cidr': '193.152.141.64/26', 'allocation_pools': [{'start': '193.152.141.66', 'end': '193.152.141.126'}], 'gateway_ip': '193.152.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.152.141.66', 'tags': [], 'project_id': '9d8a566c1b314dd3a0e20ece1c990221'}}
2025-09-15 16:15:35,989 - INFO - Created VN ctest-vn-66684040
2025-09-15 16:15:36,044 - DEBUG - VN ctest-vn-66684040 UUID is b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:36,361 - DEBUG - Response for create_network : {'network': {'id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'name': 'ctest-vn-80646457', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-80646457'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 16:15:36,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c46fdfa-6279-43c5-9a73-5e3c9206db87', 'name': '', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'network_id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'ip_version': 4, 'cidr': '81.37.170.64/26', 'allocation_pools': [{'start': '81.37.170.66', 'end': '81.37.170.126'}], 'gateway_ip': '81.37.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.37.170.66', 'tags': [], 'project_id': '9d8a566c1b314dd3a0e20ece1c990221'}}
2025-09-15 16:15:36,577 - INFO - Created VN ctest-vn-80646457
2025-09-15 16:15:36,628 - DEBUG - VN ctest-vn-80646457 UUID is f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:36,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040, 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-99688666:ctest-vn-80646457, 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-15 16:15:37,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'name': 'ctest-vn-66684040', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c59bea05-19f0-484d-b6e3-8a6087a52472'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-66684040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']], 'subnet_ipam': [{'subnet_cidr': '193.152.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 16:15:37,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'name': 'ctest-vn-80646457', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c46fdfa-6279-43c5-9a73-5e3c9206db87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-80646457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']], 'subnet_ipam': [{'subnet_cidr': '81.37.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 16:15:37,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 16:15:37,800 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 16:15:37,833 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046
2025-09-15 16:15:37,846 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221
2025-09-15 16:15:37,924 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:37,935 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:37,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550
2025-09-15 16:15:37,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550
2025-09-15 16:15:37,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dd4f8a0-eb85-4779-9481-15761210cf63
2025-09-15 16:15:37,968 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 16:15:37,968 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:37,977 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550
2025-09-15 16:15:37,991 - INFO - Verified VN network id 11 for VN b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:37,991 - INFO - Verifications in API Server for VN ctest-vn-66684040 passed
2025-09-15 16:15:37,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:38,001 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550
2025-09-15 16:15:38,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550
2025-09-15 16:15:38,016 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dd4f8a0-eb85-4779-9481-15761210cf63
2025-09-15 16:15:38,028 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99688666', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13149405420907023140', 'uuid-lslong': '12271480432785690735'}, 'enable': 'true', 'created': '2025-09-15T16:15:35', 'last-modified': '2025-09-15T16:15:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975918'}
2025-09-15 16:15:38,034 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 16:15:38,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66684040 passed
2025-09-15 16:15:38,035 - DEBUG - ====Verifying policy data for ctest-vn-66684040 in API_Server ======
2025-09-15 16:15:38,035 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 16:15:38,041 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046
2025-09-15 16:15:38,053 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221
2025-09-15 16:15:38,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f
2025-09-15 16:15:38,141 - DEBUG - ==>Verifying data for policy with id: 792dbd10-55a0-402c-9a7f-7620077e0c2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']
2025-09-15 16:15:38,141 - INFO - VN ctest-vn-66684040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 16:15:38,141 - DEBUG - Verifying the vn in opserver
2025-09-15 16:15:38,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040 virtual network link through opserver 10.0.0.38
2025-09-15 16:15:38,141 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 16:15:38,440 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 16:15:38,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040?flat'}
2025-09-15 16:15:38,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040 is found in opserver
2025-09-15 16:15:38,511 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 16:15:38,518 - DEBUG - VRF ids for VN ctest-vn-66684040: {}
2025-09-15 16:15:38,518 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 16:15:38,524 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046
2025-09-15 16:15:38,536 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221
2025-09-15 16:15:38,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,617 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,627 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a
2025-09-15 16:15:38,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a
2025-09-15 16:15:38,642 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99285922-7d57-4387-97da-33061a9bb77f
2025-09-15 16:15:38,649 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 16:15:38,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,659 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a
2025-09-15 16:15:38,674 - INFO - Verified VN network id 12 for VN f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,675 - INFO - Verifications in API Server for VN ctest-vn-80646457 passed
2025-09-15 16:15:38,675 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,685 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a
2025-09-15 16:15:38,692 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a
2025-09-15 16:15:38,699 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99285922-7d57-4387-97da-33061a9bb77f
2025-09-15 16:15:38,714 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99688666', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17317432166380291402', 'uuid-lslong': '11674215592968705675'}, 'enable': 'true', 'created': '2025-09-15T16:15:36', 'last-modified': '2025-09-15T16:15:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425374'}
2025-09-15 16:15:38,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 16:15:38,719 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80646457 passed
2025-09-15 16:15:38,720 - DEBUG - ====Verifying policy data for ctest-vn-80646457 in API_Server ======
2025-09-15 16:15:38,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-15 16:15:38,726 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046
2025-09-15 16:15:38,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221
2025-09-15 16:15:38,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b
2025-09-15 16:15:38,815 - DEBUG - ==>Verifying data for policy with id: 792dbd10-55a0-402c-9a7f-7620077e0c2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']
2025-09-15 16:15:38,815 - INFO - VN ctest-vn-80646457 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 16:15:38,815 - DEBUG - Verifying the vn in opserver
2025-09-15 16:15:38,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457 virtual network link through opserver 10.0.0.38
2025-09-15 16:15:38,815 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-15 16:15:38,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457?flat'}
2025-09-15 16:15:38,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457 is found in opserver
2025-09-15 16:15:38,836 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 16:15:38,843 - DEBUG - VRF ids for VN ctest-vn-80646457: {}
2025-09-15 16:15:38,906 - DEBUG - Services list from nova: [