2024-09-18 17:43:06,451 - INFO - Domain Default found not creating
2024-09-18 17:43:06,610 - INFO - Project ctest-TestBasicPolicy-02166754 not found, creating it
2024-09-18 17:43:07,119 - INFO - Created Project:ctest-TestBasicPolicy-02166754, ID : 3c4fa15c-d7ca-485c-8f23-f6c178a7419e
2024-09-18 17:43:08,620 - INFO - ================================================================================
2024-09-18 17:43:08,620 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 17:43:08,620 - 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
2024-09-18 17:43:08,882 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.6': '0'}} with
2024-09-18 17:43:08,883 - INFO - Initial checks done. Running the testcase now
2024-09-18 17:43:08,883 - INFO -
2024-09-18 17:43:09,451 - DEBUG - Response for create_network : {'network': {'id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'name': 'ctest-vn-80200879', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-80200879'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 17:43:09,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab0f9745-9370-433f-912e-3626bf4766d5', 'name': '', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'network_id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'ip_version': 4, 'cidr': '38.70.162.192/26', 'allocation_pools': [{'start': '38.70.162.194', 'end': '38.70.162.254'}], 'gateway_ip': '38.70.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.70.162.194', 'tags': [], 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e'}}
2024-09-18 17:43:09,689 - INFO - Created VN ctest-vn-80200879
2024-09-18 17:43:09,748 - DEBUG - VN ctest-vn-80200879 UUID is 13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:10,066 - DEBUG - Response for create_network : {'network': {'id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'name': 'ctest-vn-76184201', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-76184201'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 17:43:10,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ab6b479-21bf-4c16-baba-d4a6348e1465', 'name': '', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'network_id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'ip_version': 4, 'cidr': '177.209.68.192/26', 'allocation_pools': [{'start': '177.209.68.194', 'end': '177.209.68.254'}], 'gateway_ip': '177.209.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.209.68.194', 'tags': [], 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e'}}
2024-09-18 17:43:10,294 - INFO - Created VN ctest-vn-76184201
2024-09-18 17:43:10,356 - DEBUG - VN ctest-vn-76184201 UUID is ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:10,481 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879, 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-02166754:ctest-vn-76184201, 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]
2024-09-18 17:43:10,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'name': 'ctest-vn-80200879', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab0f9745-9370-433f-912e-3626bf4766d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-80200879'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']], 'subnet_ipam': [{'subnet_cidr': '38.70.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 17:43:11,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'name': 'ctest-vn-76184201', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ab6b479-21bf-4c16-baba-d4a6348e1465'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-76184201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']], 'subnet_ipam': [{'subnet_cidr': '177.209.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 17:43:11,240 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-18 17:43:11,549 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-18 17:43:11,585 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57
2024-09-18 17:43:11,600 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e
2024-09-18 17:43:11,686 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,702 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,715 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25
2024-09-18 17:43:11,725 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25
2024-09-18 17:43:11,734 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/eaa60646-c5c1-4c06-9c5a-23f995bbbf6e
2024-09-18 17:43:11,742 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 17:43:11,742 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,755 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25
2024-09-18 17:43:11,777 - INFO - Verified VN network id 7 for VN 13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,777 - INFO - Verifications in API Server for VN ctest-vn-80200879 passed
2024-09-18 17:43:11,777 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,793 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25
2024-09-18 17:43:11,802 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25
2024-09-18 17:43:11,811 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/eaa60646-c5c1-4c06-9c5a-23f995bbbf6e
2024-09-18 17:43:11,825 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02166754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1438333950349493883', 'uuid-lslong': '13636787134221478882'}, 'enable': 'true', 'created': '2024-09-18T17:43:09', 'last-modified': '2024-09-18T17:43:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056045'}
2024-09-18 17:43:11,832 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 17:43:11,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80200879 passed
2024-09-18 17:43:11,833 - DEBUG - ====Verifying policy data for ctest-vn-80200879 in API_Server ======
2024-09-18 17:43:11,833 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-18 17:43:11,839 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57
2024-09-18 17:43:11,852 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e
2024-09-18 17:43:11,934 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2
2024-09-18 17:43:11,949 - DEBUG - ==>Verifying data for policy with id: 0f10faa2-0d20-48dd-8926-d0a8a5d20392, fqn: ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']
2024-09-18 17:43:11,949 - INFO - VN ctest-vn-80200879 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 17:43:11,949 - DEBUG - Verifying the vn in opserver
2024-09-18 17:43:11,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879 virtual network link through opserver 10.0.0.17
2024-09-18 17:43:11,949 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-18 17:43:12,358 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-18 17:43:12,419 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879?flat'}
2024-09-18 17:43:12,419 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879 is found in opserver
2024-09-18 17:43:12,432 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 17:43:12,437 - DEBUG - VRF ids for VN ctest-vn-80200879: {}
2024-09-18 17:43:12,437 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-18 17:43:12,443 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57
2024-09-18 17:43:12,456 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e
2024-09-18 17:43:12,543 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,559 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,573 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a
2024-09-18 17:43:12,582 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a
2024-09-18 17:43:12,591 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/23d9d473-1ddc-40d4-8f60-ba48ae274610
2024-09-18 17:43:12,598 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 17:43:12,598 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,611 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a
2024-09-18 17:43:12,630 - INFO - Verified VN network id 8 for VN ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,631 - INFO - Verifications in API Server for VN ctest-vn-76184201 passed
2024-09-18 17:43:12,631 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,644 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a
2024-09-18 17:43:12,653 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a
2024-09-18 17:43:12,661 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/23d9d473-1ddc-40d4-8f60-ba48ae274610
2024-09-18 17:43:12,674 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02166754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14855309366539141556', 'uuid-lslong': '10071388293042550966'}, 'enable': 'true', 'created': '2024-09-18T17:43:10', 'last-modified': '2024-09-18T17:43:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656827'}
2024-09-18 17:43:12,680 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 17:43:12,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76184201 passed
2024-09-18 17:43:12,681 - DEBUG - ====Verifying policy data for ctest-vn-76184201 in API_Server ======
2024-09-18 17:43:12,681 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-18 17:43:12,686 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57
2024-09-18 17:43:12,699 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e
2024-09-18 17:43:12,778 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6
2024-09-18 17:43:12,793 - DEBUG - ==>Verifying data for policy with id: 0f10faa2-0d20-48dd-8926-d0a8a5d20392, fqn: ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']
2024-09-18 17:43:12,793 - INFO - VN ctest-vn-76184201 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 17:43:12,794 - DEBUG - Verifying the vn in opserver
2024-09-18 17:43:12,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201 virtual network link through opserver 10.0.0.17
2024-09-18 17:43:12,794 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-18 17:43:12,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201?flat'}
2024-09-18 17:43:12,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201 is found in opserver
2024-09-18 17:43:12,816 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 17:43:12,821 - DEBUG - VRF ids for VN ctest-vn-76184201: {}
2024-09-18 17:43:12,874 - DEBUG - Services list from nova: [