2025-04-28 02:05:29,223 - INFO - Domain Default found not creating
2025-04-28 02:05:29,360 - INFO - Project ctest-TestBasicPolicy-66806815 not found, creating it
2025-04-28 02:05:29,820 - INFO - Created Project:ctest-TestBasicPolicy-66806815, ID : a9561b89-55ba-4f35-b61d-8bb46cc84eb7
2025-04-28 02:05:31,200 - INFO - ================================================================================
2025-04-28 02:05:31,200 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 02:05:31,200 - 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-04-28 02:05:31,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-04-28 02:05:31,459 - INFO - Initial checks done. Running the testcase now
2025-04-28 02:05:31,459 - INFO -
2025-04-28 02:05:31,994 - DEBUG - Response for create_network : {'network': {'id': 'ba8efb15-609f-4fec-8825-96e23a41c9bf', 'name': 'ctest-vn-15232227', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-vn-15232227'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:05:32,200 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ad25d66-1648-4b6e-ac8c-c116e8241760', 'name': '', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'network_id': 'ba8efb15-609f-4fec-8825-96e23a41c9bf', 'ip_version': 4, 'cidr': '9.154.2.128/26', 'allocation_pools': [{'start': '9.154.2.130', 'end': '9.154.2.190'}], 'gateway_ip': '9.154.2.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.154.2.130', 'tags': [], 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7'}}
2025-04-28 02:05:32,217 - INFO - Created VN ctest-vn-15232227
2025-04-28 02:05:32,271 - DEBUG - VN ctest-vn-15232227 UUID is ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:32,590 - DEBUG - Response for create_network : {'network': {'id': 'b7a8410b-fa74-4902-9757-cee1d862a5eb', 'name': 'ctest-vn-45658924', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-vn-45658924'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:05:32,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '791b651d-1da6-4048-be97-9804eeab6a40', 'name': '', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'network_id': 'b7a8410b-fa74-4902-9757-cee1d862a5eb', 'ip_version': 4, 'cidr': '81.138.161.192/26', 'allocation_pools': [{'start': '81.138.161.194', 'end': '81.138.161.254'}], 'gateway_ip': '81.138.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.138.161.194', 'tags': [], 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7'}}
2025-04-28 02:05:32,775 - INFO - Created VN ctest-vn-45658924
2025-04-28 02:05:32,827 - DEBUG - VN ctest-vn-45658924 UUID is b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:32,979 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227, 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-66806815:ctest-vn-45658924, 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-04-28 02:05:33,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba8efb15-609f-4fec-8825-96e23a41c9bf', 'name': 'ctest-vn-15232227', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ad25d66-1648-4b6e-ac8c-c116e8241760'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-vn-15232227'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-policy-allow-all-42759500']], 'subnet_ipam': [{'subnet_cidr': '9.154.2.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:05:33,543 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7a8410b-fa74-4902-9757-cee1d862a5eb', 'name': 'ctest-vn-45658924', 'tenant_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'project_id': 'a9561b8955ba4f35b61d8bb46cc84eb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['791b651d-1da6-4048-be97-9804eeab6a40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-vn-45658924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-policy-allow-all-42759500']], 'subnet_ipam': [{'subnet_cidr': '81.138.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:05:33,695 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-28 02:05:33,995 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-28 02:05:34,024 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e9d2aa4c-e783-4f8b-8179-cbfa7b2c2003
2025-04-28 02:05:34,044 - DEBUG - Requesting: http://10.0.0.19:8082/project/a9561b89-55ba-4f35-b61d-8bb46cc84eb7
2025-04-28 02:05:34,129 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,142 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,152 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/229a38f7-9eba-4b59-a644-9297b3f91170
2025-04-28 02:05:34,160 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/229a38f7-9eba-4b59-a644-9297b3f91170
2025-04-28 02:05:34,167 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5a85d721-ca76-43f4-baaf-056702bbfc0d
2025-04-28 02:05:34,174 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:05:34,174 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,183 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/229a38f7-9eba-4b59-a644-9297b3f91170
2025-04-28 02:05:34,198 - INFO - Verified VN network id 8 for VN ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,198 - INFO - Verifications in API Server for VN ctest-vn-15232227 passed
2025-04-28 02:05:34,198 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,208 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/229a38f7-9eba-4b59-a644-9297b3f91170
2025-04-28 02:05:34,215 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/229a38f7-9eba-4b59-a644-9297b3f91170
2025-04-28 02:05:34,221 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5a85d721-ca76-43f4-baaf-056702bbfc0d
2025-04-28 02:05:34,233 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66806815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13442958006981447660', 'uuid-lslong': '9810413261680658879'}, 'enable': 'true', 'created': '2025-04-28T02:05:31', 'last-modified': '2025-04-28T02:05:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985735'}
2025-04-28 02:05:34,239 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:05:34,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15232227 passed
2025-04-28 02:05:34,239 - DEBUG - ====Verifying policy data for ctest-vn-15232227 in API_Server ======
2025-04-28 02:05:34,239 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-28 02:05:34,245 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e9d2aa4c-e783-4f8b-8179-cbfa7b2c2003
2025-04-28 02:05:34,256 - DEBUG - Requesting: http://10.0.0.19:8082/project/a9561b89-55ba-4f35-b61d-8bb46cc84eb7
2025-04-28 02:05:34,325 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba8efb15-609f-4fec-8825-96e23a41c9bf
2025-04-28 02:05:34,335 - DEBUG - ==>Verifying data for policy with id: b1c1d553-7cc2-4831-9cfd-64914919b397, fqn: ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-policy-allow-all-42759500']
2025-04-28 02:05:34,335 - INFO - VN ctest-vn-15232227 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:05:34,335 - DEBUG - Verifying the vn in opserver
2025-04-28 02:05:34,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227 virtual network link through opserver 10.0.0.19
2025-04-28 02:05:34,335 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-28 02:05:34,627 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-28 02:05:34,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227?flat'}
2025-04-28 02:05:34,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-15232227 is found in opserver
2025-04-28 02:05:34,690 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:05:34,694 - DEBUG - VRF ids for VN ctest-vn-15232227: {}
2025-04-28 02:05:34,694 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-28 02:05:34,700 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e9d2aa4c-e783-4f8b-8179-cbfa7b2c2003
2025-04-28 02:05:34,711 - DEBUG - Requesting: http://10.0.0.19:8082/project/a9561b89-55ba-4f35-b61d-8bb46cc84eb7
2025-04-28 02:05:34,781 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,793 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,802 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b6fa7c63-6a6c-4295-9acd-621779d6d665
2025-04-28 02:05:34,809 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b6fa7c63-6a6c-4295-9acd-621779d6d665
2025-04-28 02:05:34,815 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/61a3d16b-8e17-4f78-892d-f3ec91efc1b6
2025-04-28 02:05:34,821 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:05:34,821 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,830 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b6fa7c63-6a6c-4295-9acd-621779d6d665
2025-04-28 02:05:34,843 - INFO - Verified VN network id 9 for VN b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,843 - INFO - Verifications in API Server for VN ctest-vn-45658924 passed
2025-04-28 02:05:34,843 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,852 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b6fa7c63-6a6c-4295-9acd-621779d6d665
2025-04-28 02:05:34,859 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b6fa7c63-6a6c-4295-9acd-621779d6d665
2025-04-28 02:05:34,865 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/61a3d16b-8e17-4f78-892d-f3ec91efc1b6
2025-04-28 02:05:34,876 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-45658924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66806815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13233899024730573058', 'uuid-lslong': '10905412492094252523'}, 'enable': 'true', 'created': '2025-04-28T02:05:32', 'last-modified': '2025-04-28T02:05:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396554'}
2025-04-28 02:05:34,882 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:05:34,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45658924 passed
2025-04-28 02:05:34,882 - DEBUG - ====Verifying policy data for ctest-vn-45658924 in API_Server ======
2025-04-28 02:05:34,882 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-28 02:05:34,887 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e9d2aa4c-e783-4f8b-8179-cbfa7b2c2003
2025-04-28 02:05:34,898 - DEBUG - Requesting: http://10.0.0.19:8082/project/a9561b89-55ba-4f35-b61d-8bb46cc84eb7
2025-04-28 02:05:34,969 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b7a8410b-fa74-4902-9757-cee1d862a5eb
2025-04-28 02:05:34,978 - DEBUG - ==>Verifying data for policy with id: b1c1d553-7cc2-4831-9cfd-64914919b397, fqn: ['default-domain', 'ctest-TestBasicPolicy-66806815', 'ctest-policy-allow-all-42759500']
2025-04-28 02:05:34,978 - INFO - VN ctest-vn-45658924 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:05:34,978 - DEBUG - Verifying the vn in opserver
2025-04-28 02:05:34,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-45658924 virtual network link through opserver 10.0.0.19
2025-04-28 02:05:34,979 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-28 02:05:34,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-45658924', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-45658924?flat'}
2025-04-28 02:05:34,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66806815:ctest-vn-45658924 is found in opserver
2025-04-28 02:05:34,998 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:05:35,003 - DEBUG - VRF ids for VN ctest-vn-45658924: {}
2025-04-28 02:05:35,055 - DEBUG - Services list from nova: [