2024-08-23 19:17:50,504 - INFO - Domain Default found not creating
2024-08-23 19:17:50,696 - INFO - Project ctest-TestBasicPolicy-28247349 not found, creating it
2024-08-23 19:17:51,183 - INFO - Created Project:ctest-TestBasicPolicy-28247349, ID : 7e836905-66bd-49d4-ba69-9394603435fb
2024-08-23 19:17:52,930 - INFO - ================================================================================
2024-08-23 19:17:52,930 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-23 19:17:52,930 - 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-23 19:17:53,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.10': '0'}} with
2024-08-23 19:17:53,191 - INFO - Initial checks done. Running the testcase now
2024-08-23 19:17:53,191 - INFO -
2024-08-23 19:17:53,806 - DEBUG - Response for create_network : {'network': {'id': '32854301-8e5a-4caf-9985-62b4acb889c7', 'name': 'ctest-vn-31521152', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'project_id': '7e83690566bd49d4ba699394603435fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-vn-31521152'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 19:17:54,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '16b49d70-76ad-411f-bbe2-46d504d7e583', 'name': '', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'network_id': '32854301-8e5a-4caf-9985-62b4acb889c7', 'ip_version': 4, 'cidr': '151.110.49.128/26', 'allocation_pools': [{'start': '151.110.49.130', 'end': '151.110.49.190'}], 'gateway_ip': '151.110.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.110.49.130', 'tags': [], 'project_id': '7e83690566bd49d4ba699394603435fb'}}
2024-08-23 19:17:54,060 - INFO - Created VN ctest-vn-31521152
2024-08-23 19:17:54,112 - DEBUG - VN ctest-vn-31521152 UUID is 32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:54,447 - DEBUG - Response for create_network : {'network': {'id': 'c539370d-32b4-42c7-a422-6700e06cc3c3', 'name': 'ctest-vn-23619852', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'project_id': '7e83690566bd49d4ba699394603435fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-vn-23619852'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 19:17:54,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8f16473-5b5d-44f7-be75-c2a46b0ed7f4', 'name': '', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'network_id': 'c539370d-32b4-42c7-a422-6700e06cc3c3', 'ip_version': 4, 'cidr': '83.55.229.64/26', 'allocation_pools': [{'start': '83.55.229.66', 'end': '83.55.229.126'}], 'gateway_ip': '83.55.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.55.229.66', 'tags': [], 'project_id': '7e83690566bd49d4ba699394603435fb'}}
2024-08-23 19:17:54,646 - INFO - Created VN ctest-vn-23619852
2024-08-23 19:17:54,696 - DEBUG - VN ctest-vn-23619852 UUID is c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:54,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152, 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-28247349:ctest-vn-23619852, 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-23 19:17:55,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32854301-8e5a-4caf-9985-62b4acb889c7', 'name': 'ctest-vn-31521152', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'project_id': '7e83690566bd49d4ba699394603435fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16b49d70-76ad-411f-bbe2-46d504d7e583'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-vn-31521152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-policy-allow-all-92880741']], 'subnet_ipam': [{'subnet_cidr': '151.110.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 19:17:55,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c539370d-32b4-42c7-a422-6700e06cc3c3', 'name': 'ctest-vn-23619852', 'tenant_id': '7e83690566bd49d4ba699394603435fb', 'project_id': '7e83690566bd49d4ba699394603435fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8f16473-5b5d-44f7-be75-c2a46b0ed7f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-vn-23619852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-policy-allow-all-92880741']], 'subnet_ipam': [{'subnet_cidr': '83.55.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 19:17:55,584 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-23 19:17:55,946 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-23 19:17:55,989 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9af65950-c6c4-4576-b76b-3879f6f00e95
2024-08-23 19:17:56,006 - DEBUG - Requesting: http://10.0.0.29:8082/project/7e836905-66bd-49d4-ba69-9394603435fb
2024-08-23 19:17:56,078 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,089 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,099 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ec4263fc-02c3-4648-bbe5-01358fc709f9
2024-08-23 19:17:56,108 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ec4263fc-02c3-4648-bbe5-01358fc709f9
2024-08-23 19:17:56,116 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/90638bb2-d86b-4516-913d-5db5ee618ff4
2024-08-23 19:17:56,123 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 19:17:56,123 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,132 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ec4263fc-02c3-4648-bbe5-01358fc709f9
2024-08-23 19:17:56,145 - INFO - Verified VN network id 7 for VN 32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,145 - INFO - Verifications in API Server for VN ctest-vn-31521152 passed
2024-08-23 19:17:56,145 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,154 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ec4263fc-02c3-4648-bbe5-01358fc709f9
2024-08-23 19:17:56,163 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ec4263fc-02c3-4648-bbe5-01358fc709f9
2024-08-23 19:17:56,172 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/90638bb2-d86b-4516-913d-5db5ee618ff4
2024-08-23 19:17:56,190 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28247349', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3640389547761224879', 'uuid-lslong': '11062356587836901831'}, 'enable': 'true', 'created': '2024-08-23T19:17:53', 'last-modified': '2024-08-23T19:17:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047584'}
2024-08-23 19:17:56,198 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 19:17:56,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31521152 passed
2024-08-23 19:17:56,198 - DEBUG - ====Verifying policy data for ctest-vn-31521152 in API_Server ======
2024-08-23 19:17:56,198 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-23 19:17:56,205 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9af65950-c6c4-4576-b76b-3879f6f00e95
2024-08-23 19:17:56,219 - DEBUG - Requesting: http://10.0.0.29:8082/project/7e836905-66bd-49d4-ba69-9394603435fb
2024-08-23 19:17:56,291 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/32854301-8e5a-4caf-9985-62b4acb889c7
2024-08-23 19:17:56,300 - DEBUG - ==>Verifying data for policy with id: 42cc0baa-a86f-4c67-afae-38e573589bec, fqn: ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-policy-allow-all-92880741']
2024-08-23 19:17:56,300 - INFO - VN ctest-vn-31521152 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 19:17:56,300 - DEBUG - Verifying the vn in opserver
2024-08-23 19:17:56,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152 virtual network link through opserver 10.0.0.29
2024-08-23 19:17:56,300 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-23 19:17:56,641 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-23 19:17:56,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152?flat'}
2024-08-23 19:17:56,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-31521152 is found in opserver
2024-08-23 19:17:56,727 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 19:17:56,733 - DEBUG - VRF ids for VN ctest-vn-31521152: {}
2024-08-23 19:17:56,734 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-23 19:17:56,741 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9af65950-c6c4-4576-b76b-3879f6f00e95
2024-08-23 19:17:56,755 - DEBUG - Requesting: http://10.0.0.29:8082/project/7e836905-66bd-49d4-ba69-9394603435fb
2024-08-23 19:17:56,828 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:56,841 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:56,852 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1b586475-6c2b-4d13-b871-307dd51fd6be
2024-08-23 19:17:56,862 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1b586475-6c2b-4d13-b871-307dd51fd6be
2024-08-23 19:17:56,870 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ca83640f-2c61-4ff1-99d1-56cb5208c4a3
2024-08-23 19:17:56,877 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 19:17:56,878 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:56,887 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1b586475-6c2b-4d13-b871-307dd51fd6be
2024-08-23 19:17:56,900 - INFO - Verified VN network id 8 for VN c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:56,900 - INFO - Verifications in API Server for VN ctest-vn-23619852 passed
2024-08-23 19:17:56,900 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:56,909 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1b586475-6c2b-4d13-b871-307dd51fd6be
2024-08-23 19:17:56,917 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1b586475-6c2b-4d13-b871-307dd51fd6be
2024-08-23 19:17:56,923 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ca83640f-2c61-4ff1-99d1-56cb5208c4a3
2024-08-23 19:17:56,937 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-23619852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28247349', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14211450628969087687', 'uuid-lslong': '11827128824891229123'}, 'enable': 'true', 'created': '2024-08-23T19:17:54', 'last-modified': '2024-08-23T19:17:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.532502'}
2024-08-23 19:17:56,944 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 19:17:56,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23619852 passed
2024-08-23 19:17:56,945 - DEBUG - ====Verifying policy data for ctest-vn-23619852 in API_Server ======
2024-08-23 19:17:56,945 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-23 19:17:56,952 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9af65950-c6c4-4576-b76b-3879f6f00e95
2024-08-23 19:17:56,965 - DEBUG - Requesting: http://10.0.0.29:8082/project/7e836905-66bd-49d4-ba69-9394603435fb
2024-08-23 19:17:57,036 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c539370d-32b4-42c7-a422-6700e06cc3c3
2024-08-23 19:17:57,047 - DEBUG - ==>Verifying data for policy with id: 42cc0baa-a86f-4c67-afae-38e573589bec, fqn: ['default-domain', 'ctest-TestBasicPolicy-28247349', 'ctest-policy-allow-all-92880741']
2024-08-23 19:17:57,047 - INFO - VN ctest-vn-23619852 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 19:17:57,047 - DEBUG - Verifying the vn in opserver
2024-08-23 19:17:57,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-23619852 virtual network link through opserver 10.0.0.29
2024-08-23 19:17:57,048 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-23 19:17:57,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-23619852', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-23619852?flat'}
2024-08-23 19:17:57,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28247349:ctest-vn-23619852 is found in opserver
2024-08-23 19:17:57,072 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 19:17:57,078 - DEBUG - VRF ids for VN ctest-vn-23619852: {}
2024-08-23 19:17:57,140 - DEBUG - Services list from nova: [