2024-08-29 11:21:48,937 - INFO - Domain Default found not creating
2024-08-29 11:21:49,127 - INFO - Project ctest-TestBasicPolicy-15400405 not found, creating it
2024-08-29 11:21:49,626 - INFO - Created Project:ctest-TestBasicPolicy-15400405, ID : 3d8926b9-17d9-44c3-886d-aea7430e0df6
2024-08-29 11:21:51,856 - INFO - ================================================================================
2024-08-29 11:21:51,856 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 11:21:51,856 - 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-08-29 11:21:52,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.8': '0'}} with
2024-08-29 11:21:52,114 - INFO - Initial checks done. Running the testcase now
2024-08-29 11:21:52,114 - INFO -
2024-08-29 11:21:52,689 - DEBUG - Response for create_network : {'network': {'id': '18c9f720-0867-41f3-908a-b7f9552c6810', 'name': 'ctest-vn-31049613', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'project_id': '3d8926b917d944c3886daea7430e0df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-vn-31049613'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 11:21:52,907 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a822e2e9-6948-4880-846d-7295171cb18d', 'name': '', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'network_id': '18c9f720-0867-41f3-908a-b7f9552c6810', 'ip_version': 4, 'cidr': '79.6.73.192/26', 'allocation_pools': [{'start': '79.6.73.194', 'end': '79.6.73.254'}], 'gateway_ip': '79.6.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.6.73.194', 'tags': [], 'project_id': '3d8926b917d944c3886daea7430e0df6'}}
2024-08-29 11:21:52,929 - INFO - Created VN ctest-vn-31049613
2024-08-29 11:21:52,980 - DEBUG - VN ctest-vn-31049613 UUID is 18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:53,284 - DEBUG - Response for create_network : {'network': {'id': '9baceba2-e42f-4098-980b-edcae87f8fe9', 'name': 'ctest-vn-57819299', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'project_id': '3d8926b917d944c3886daea7430e0df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-vn-57819299'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 11:21:53,506 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b76e803b-531c-47d6-ad48-f3d5f665e409', 'name': '', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'network_id': '9baceba2-e42f-4098-980b-edcae87f8fe9', 'ip_version': 4, 'cidr': '44.57.85.64/26', 'allocation_pools': [{'start': '44.57.85.66', 'end': '44.57.85.126'}], 'gateway_ip': '44.57.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.57.85.66', 'tags': [], 'project_id': '3d8926b917d944c3886daea7430e0df6'}}
2024-08-29 11:21:53,530 - INFO - Created VN ctest-vn-57819299
2024-08-29 11:21:53,584 - DEBUG - VN ctest-vn-57819299 UUID is 9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:53,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613, 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-15400405:ctest-vn-57819299, 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-08-29 11:21:54,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18c9f720-0867-41f3-908a-b7f9552c6810', 'name': 'ctest-vn-31049613', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'project_id': '3d8926b917d944c3886daea7430e0df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a822e2e9-6948-4880-846d-7295171cb18d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-vn-31049613'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-policy-allow-all-14708556']], 'subnet_ipam': [{'subnet_cidr': '79.6.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 11:21:54,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9baceba2-e42f-4098-980b-edcae87f8fe9', 'name': 'ctest-vn-57819299', 'tenant_id': '3d8926b917d944c3886daea7430e0df6', 'project_id': '3d8926b917d944c3886daea7430e0df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b76e803b-531c-47d6-ad48-f3d5f665e409'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-vn-57819299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-policy-allow-all-14708556']], 'subnet_ipam': [{'subnet_cidr': '44.57.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 11:21:54,467 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-29 11:21:54,763 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-29 11:21:54,797 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf16093-709e-414f-a1d4-cff525204678
2024-08-29 11:21:54,811 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d8926b9-17d9-44c3-886d-aea7430e0df6
2024-08-29 11:21:54,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:54,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:54,903 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49aba87b-49a5-434e-b41f-c12a1f4a8a5f
2024-08-29 11:21:54,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49aba87b-49a5-434e-b41f-c12a1f4a8a5f
2024-08-29 11:21:54,919 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22abbf77-7f9d-427f-bb52-9801abf59f91
2024-08-29 11:21:54,928 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 11:21:54,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:54,937 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49aba87b-49a5-434e-b41f-c12a1f4a8a5f
2024-08-29 11:21:54,953 - INFO - Verified VN network id 8 for VN 18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:54,953 - INFO - Verifications in API Server for VN ctest-vn-31049613 passed
2024-08-29 11:21:54,953 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:54,963 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49aba87b-49a5-434e-b41f-c12a1f4a8a5f
2024-08-29 11:21:54,971 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49aba87b-49a5-434e-b41f-c12a1f4a8a5f
2024-08-29 11:21:54,981 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22abbf77-7f9d-427f-bb52-9801abf59f91
2024-08-29 11:21:54,996 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15400405', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1786230444181111283', 'uuid-lslong': '10415339369751406608'}, 'enable': 'true', 'created': '2024-08-29T11:21:52', 'last-modified': '2024-08-29T11:21:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977777'}
2024-08-29 11:21:55,004 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 11:21:55,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31049613 passed
2024-08-29 11:21:55,004 - DEBUG - ====Verifying policy data for ctest-vn-31049613 in API_Server ======
2024-08-29 11:21:55,005 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-29 11:21:55,012 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf16093-709e-414f-a1d4-cff525204678
2024-08-29 11:21:55,024 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d8926b9-17d9-44c3-886d-aea7430e0df6
2024-08-29 11:21:55,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18c9f720-0867-41f3-908a-b7f9552c6810
2024-08-29 11:21:55,103 - DEBUG - ==>Verifying data for policy with id: d736f3c0-a6f0-410c-a813-b972731a2ae0, fqn: ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-policy-allow-all-14708556']
2024-08-29 11:21:55,103 - INFO - VN ctest-vn-31049613 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 11:21:55,103 - DEBUG - Verifying the vn in opserver
2024-08-29 11:21:55,103 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613 virtual network link through opserver 10.0.0.38
2024-08-29 11:21:55,103 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-29 11:21:55,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-29 11:21:55,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613?flat'}
2024-08-29 11:21:55,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-31049613 is found in opserver
2024-08-29 11:21:55,497 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 11:21:55,503 - DEBUG - VRF ids for VN ctest-vn-31049613: {}
2024-08-29 11:21:55,503 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-29 11:21:55,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf16093-709e-414f-a1d4-cff525204678
2024-08-29 11:21:55,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d8926b9-17d9-44c3-886d-aea7430e0df6
2024-08-29 11:21:55,601 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,617 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96030cab-0f35-4f2d-b2f7-33378f318a83
2024-08-29 11:21:55,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96030cab-0f35-4f2d-b2f7-33378f318a83
2024-08-29 11:21:55,642 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/537e46d2-dc05-499d-981d-931c704ba415
2024-08-29 11:21:55,649 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 11:21:55,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96030cab-0f35-4f2d-b2f7-33378f318a83
2024-08-29 11:21:55,670 - INFO - Verified VN network id 9 for VN 9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,670 - INFO - Verifications in API Server for VN ctest-vn-57819299 passed
2024-08-29 11:21:55,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96030cab-0f35-4f2d-b2f7-33378f318a83
2024-08-29 11:21:55,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96030cab-0f35-4f2d-b2f7-33378f318a83
2024-08-29 11:21:55,693 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/537e46d2-dc05-499d-981d-931c704ba415
2024-08-29 11:21:55,706 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-57819299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15400405', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11217599856718594200', 'uuid-lslong': '10956111974248714217'}, 'enable': 'true', 'created': '2024-08-29T11:21:53', 'last-modified': '2024-08-29T11:21:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437965'}
2024-08-29 11:21:55,716 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 11:21:55,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57819299 passed
2024-08-29 11:21:55,716 - DEBUG - ====Verifying policy data for ctest-vn-57819299 in API_Server ======
2024-08-29 11:21:55,716 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-29 11:21:55,723 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bf16093-709e-414f-a1d4-cff525204678
2024-08-29 11:21:55,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d8926b9-17d9-44c3-886d-aea7430e0df6
2024-08-29 11:21:55,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9baceba2-e42f-4098-980b-edcae87f8fe9
2024-08-29 11:21:55,820 - DEBUG - ==>Verifying data for policy with id: d736f3c0-a6f0-410c-a813-b972731a2ae0, fqn: ['default-domain', 'ctest-TestBasicPolicy-15400405', 'ctest-policy-allow-all-14708556']
2024-08-29 11:21:55,820 - INFO - VN ctest-vn-57819299 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 11:21:55,820 - DEBUG - Verifying the vn in opserver
2024-08-29 11:21:55,820 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-57819299 virtual network link through opserver 10.0.0.38
2024-08-29 11:21:55,820 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-29 11:21:55,834 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-57819299', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-57819299?flat'}
2024-08-29 11:21:55,834 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15400405:ctest-vn-57819299 is found in opserver
2024-08-29 11:21:55,846 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 11:21:55,851 - DEBUG - VRF ids for VN ctest-vn-57819299: {}
2024-08-29 11:21:55,919 - DEBUG - Services list from nova: [