2024-10-22 19:25:16,316 - INFO - Domain Default found not creating
2024-10-22 19:25:16,498 - INFO - Project ctest-TestBasicPolicy-11006573 not found, creating it
2024-10-22 19:25:17,033 - INFO - Created Project:ctest-TestBasicPolicy-11006573, ID : c7ea8a13-d6e1-4ac4-80ca-00a05511102a
2024-10-22 19:25:18,692 - INFO - ================================================================================
2024-10-22 19:25:18,692 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-22 19:25:18,693 - 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-10-22 19:25:18,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.7': '0'}} with
2024-10-22 19:25:18,949 - INFO - Initial checks done. Running the testcase now
2024-10-22 19:25:18,949 - INFO -
2024-10-22 19:25:19,580 - DEBUG - Response for create_network : {'network': {'id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'name': 'ctest-vn-49643643', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-49643643'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 19:25:19,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4bcaa4d-68d7-4047-81fb-1a705a01b856', 'name': '', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'network_id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'ip_version': 4, 'cidr': '30.208.185.64/26', 'allocation_pools': [{'start': '30.208.185.66', 'end': '30.208.185.126'}], 'gateway_ip': '30.208.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.208.185.66', 'tags': [], 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a'}}
2024-10-22 19:25:19,801 - INFO - Created VN ctest-vn-49643643
2024-10-22 19:25:19,860 - DEBUG - VN ctest-vn-49643643 UUID is eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:20,223 - DEBUG - Response for create_network : {'network': {'id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'name': 'ctest-vn-64484183', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-64484183'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 19:25:20,463 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2fbf096-abdd-457b-97b2-a7aa67a991dd', 'name': '', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'network_id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'ip_version': 4, 'cidr': '33.179.97.128/26', 'allocation_pools': [{'start': '33.179.97.130', 'end': '33.179.97.190'}], 'gateway_ip': '33.179.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.179.97.130', 'tags': [], 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a'}}
2024-10-22 19:25:20,485 - INFO - Created VN ctest-vn-64484183
2024-10-22 19:25:20,544 - DEBUG - VN ctest-vn-64484183 UUID is 475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:20,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643, 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-11006573:ctest-vn-64484183, 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-10-22 19:25:21,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'name': 'ctest-vn-49643643', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4bcaa4d-68d7-4047-81fb-1a705a01b856'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-49643643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']], 'subnet_ipam': [{'subnet_cidr': '30.208.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 19:25:21,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'name': 'ctest-vn-64484183', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2fbf096-abdd-457b-97b2-a7aa67a991dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-64484183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']], 'subnet_ipam': [{'subnet_cidr': '33.179.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 19:25:21,500 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-10-22 19:25:21,812 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-10-22 19:25:21,850 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79
2024-10-22 19:25:21,869 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a
2024-10-22 19:25:21,965 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:21,982 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:21,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7
2024-10-22 19:25:22,011 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7
2024-10-22 19:25:22,023 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/9b4c0800-9348-40c7-8e40-9ea9de2a1f51
2024-10-22 19:25:22,035 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 19:25:22,035 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:22,054 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7
2024-10-22 19:25:22,080 - INFO - Verified VN network id 8 for VN eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:22,080 - INFO - Verifications in API Server for VN ctest-vn-49643643 passed
2024-10-22 19:25:22,080 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:22,096 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7
2024-10-22 19:25:22,107 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7
2024-10-22 19:25:22,118 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/9b4c0800-9348-40c7-8e40-9ea9de2a1f51
2024-10-22 19:25:22,135 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11006573', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16954392117261584975', 'uuid-lslong': '9288549713589113840'}, 'enable': 'true', 'created': '2024-10-22T19:25:19', 'last-modified': '2024-10-22T19:25:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.147605'}
2024-10-22 19:25:22,145 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 19:25:22,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49643643 passed
2024-10-22 19:25:22,145 - DEBUG - ====Verifying policy data for ctest-vn-49643643 in API_Server ======
2024-10-22 19:25:22,145 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-10-22 19:25:22,153 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79
2024-10-22 19:25:22,169 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a
2024-10-22 19:25:22,265 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0
2024-10-22 19:25:22,283 - DEBUG - ==>Verifying data for policy with id: a1826688-7b4f-4a6d-9699-f402a191c65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']
2024-10-22 19:25:22,283 - INFO - VN ctest-vn-49643643 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 19:25:22,283 - DEBUG - Verifying the vn in opserver
2024-10-22 19:25:22,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643 virtual network link through opserver 10.0.0.36
2024-10-22 19:25:22,283 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-10-22 19:25:22,584 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-10-22 19:25:22,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643?flat'}
2024-10-22 19:25:22,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643 is found in opserver
2024-10-22 19:25:22,667 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 19:25:22,674 - DEBUG - VRF ids for VN ctest-vn-49643643: {}
2024-10-22 19:25:22,674 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-10-22 19:25:22,681 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79
2024-10-22 19:25:22,698 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a
2024-10-22 19:25:22,785 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:22,804 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:22,822 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f
2024-10-22 19:25:22,832 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f
2024-10-22 19:25:22,842 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d84f1804-cd83-4fd4-a6d1-60aaa9776225
2024-10-22 19:25:22,851 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 19:25:22,851 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:22,866 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f
2024-10-22 19:25:22,888 - INFO - Verified VN network id 9 for VN 475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:22,888 - INFO - Verifications in API Server for VN ctest-vn-64484183 passed
2024-10-22 19:25:22,888 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:22,905 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f
2024-10-22 19:25:22,915 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f
2024-10-22 19:25:22,925 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d84f1804-cd83-4fd4-a6d1-60aaa9776225
2024-10-22 19:25:22,940 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11006573', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5142484480692144884', 'uuid-lslong': '13096738974980069534'}, 'enable': 'true', 'created': '2024-10-22T19:25:20', 'last-modified': '2024-10-22T19:25:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.669646'}
2024-10-22 19:25:22,948 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 19:25:22,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64484183 passed
2024-10-22 19:25:22,949 - DEBUG - ====Verifying policy data for ctest-vn-64484183 in API_Server ======
2024-10-22 19:25:22,949 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-10-22 19:25:22,955 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79
2024-10-22 19:25:22,970 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a
2024-10-22 19:25:23,063 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e
2024-10-22 19:25:23,081 - DEBUG - ==>Verifying data for policy with id: a1826688-7b4f-4a6d-9699-f402a191c65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']
2024-10-22 19:25:23,081 - INFO - VN ctest-vn-64484183 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 19:25:23,081 - DEBUG - Verifying the vn in opserver
2024-10-22 19:25:23,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183 virtual network link through opserver 10.0.0.36
2024-10-22 19:25:23,081 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-10-22 19:25:23,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183?flat'}
2024-10-22 19:25:23,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183 is found in opserver
2024-10-22 19:25:23,109 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 19:25:23,117 - DEBUG - VRF ids for VN ctest-vn-64484183: {}
2024-10-22 19:25:23,181 - DEBUG - Services list from nova: [